[Slackbuilds-users] fix Jinja2 typo

Grissiom chaos.proton at gmail.com
Fri Jun 24 00:44:05 UTC 2011


This typo makes Jianja2 leave junk /usr/doc/-2.5.5 which does not make
sense to users.

Here is the patch
=================================
diff --git a/libraries/Jinja2/Jinja2.SlackBuild
b/libraries/Jinja2/Jinja2.SlackBuild
index 0a96b9d..b20307e 100644
--- a/libraries/Jinja2/Jinja2.SlackBuild
+++ b/libraries/Jinja2/Jinja2.SlackBuild
@@ -5,9 +5,9 @@
 # Written by Mikko Värri (vmj at linuxbox.fi)
 # Public domain.

-PRGNAM=Jinja2
+PKGNAM=Jinja2
 VERSION=${VERSION:-2.5.5}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
 TAG=${TAG:-_SBo}

 if [ -z "$ARCH" ]; then
@@ -20,7 +20,7 @@ fi

 CWD=$(pwd)
 TMP=${TMP:-/tmp/SBo}
-PKG=$TMP/package-$PRGNAM
+PKG=$TMP/package-$PKGNAM
 OUTPUT=${OUTPUT:-/tmp}

 DOCS=${DOCS:-no}
@@ -30,9 +30,9 @@ set -e
 rm -rf $PKG
 mkdir -p $TMP $PKG $OUTPUT
 cd $TMP
-rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
-cd $PRGNAM-$VERSION
+rm -rf $PKGNAM-$VERSION
+tar xvf $CWD/$PKGNAM-$VERSION.tar.gz
+cd $PKGNAM-$VERSION
 chown -R root:root .
 find . \
  \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
@@ -49,13 +49,13 @@ fi
 find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
   | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true

-mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a AUTHORS CHANGES LICENSE ext examples $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a docs/_build/html $PKG/usr/doc/$PRGNAM-$VERSION || cp -a docs
$PKG/usr/doc/$PKGNAM-$VERSION
-cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+mkdir -p $PKG/usr/doc/$PKGNAM-$VERSION
+cp -a AUTHORS CHANGES LICENSE ext examples $PKG/usr/doc/$PKGNAM-$VERSION
+cp -a docs/_build/html $PKG/usr/doc/$PKGNAM-$VERSION || cp -a docs
$PKG/usr/doc/$PKGNAM-$VERSION
+cat $CWD/$PKGNAM.SlackBuild > $PKG/usr/doc/$PKGNAM-$VERSION/$PKGNAM.SlackBuild

 mkdir -p $PKG/install
 cat $CWD/slack-desc > $PKG/install/slack-desc

 cd $PKG
-/sbin/makepkg -l y -c n
$OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
+/sbin/makepkg -l y -c n
$OUTPUT/$PKGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
===========================

-- 
Cheers,
Grissiom


More information about the SlackBuilds-users mailing list