]> gitweb.fluxo.info Git - slackbuilds.git/commitdiff
Pequenas modificacoes e correcoes (SlackBuilds testados e funcionando)
authorluis <luis@370017ae-e619-0410-ac65-c121f96126d4>
Fri, 15 Dec 2006 06:08:22 +0000 (06:08 +0000)
committerluis <luis@370017ae-e619-0410-ac65-c121f96126d4>
Fri, 15 Dec 2006 06:08:22 +0000 (06:08 +0000)
git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@920 370017ae-e619-0410-ac65-c121f96126d4

app/crypt/gnupg2/gnupg2.SlackBuild
dev/libs/libassuan/libassuan.SlackBuild
dev/libs/libgcrypt/libgcrypt.SlackBuild
dev/libs/libgpg-error/libgpg-error.SlackBuild
dev/libs/libksba/libksba.SlackBuild
dev/libs/libpth/libpth.SlackBuild
sci/electronics/gtkwave/gtkwave.SlackBuild
sci/electronics/iverilog/iverilog.SlackBuild
sci/electronics/ivi/ivi.SlackBuild

index 31e6e756c55e5979953441383c202776b4aef455..6140514fc5581f021d8ee2278f782b50c55f20bf 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/bash
 #
-# SlackBuild for gnupg2 (GNU Privacy Guard v2):
+# SlackBuild for gnupg2 (GNU Privacy Guard v2)
 # http://www.gnupg.org/
 #
 # Author: Luis ( luis at riseup d0t net )
@@ -25,15 +25,16 @@ SRC_DIR=${SRC_DIR:=$CWD}
 TMP=${TMP:=/tmp}
 PKG=${PKG:=$TMP/package-$PKG_NAME}
 REPOS=${REPOS:=$TMP}
-PREFIX=${PREFIX:=/usr}
+PREFIX=${PREFIX:=/usr/local}
+PKG_SRC=$SRC_NAME-$VERSION
 
 # Set system libraries' path and optmization flags based on $ARCH
 LIBDIR=$PREFIX/lib
 
 if [ "$ARCH" = "i386" ]; then
-  SLKCFLAGS="-O2 -march=i386 -mtune=i686"
+  SLKCFLAGS="-O2 -march=i386 -mcpu=i686"
 elif [ "$ARCH" = "i486" ]; then
-  SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+  SLKCFLAGS="-O2 -march=i486 -mcpu=i686"
 elif [ "$ARCH" = "i686" ]; then
   SLKCFLAGS="-O2 -march=i686"
 elif [ "$ARCH" = "s390" ]; then
@@ -50,15 +51,17 @@ ERROR_TAR=37;       ERROR_MKPKG=38;     ERROR_GPG=39
 ERROR_PATCH=40;     ERROR_VCS=41;       ERROR_MKDIR=42
 
 # Clean up any leftovers of previous builds
-rm -rf $SRC_NAME-$VERSION 2> /dev/null
+rm -rf $PKG_SRC 2> /dev/null
 rm -rf $PKG 2> /dev/null
+
+# Create directories, if necessary
 mkdir -p $SRC_DIR || exit $ERROR_MKDIR
 mkdir -p $PKG || exit $ERROR_MKDIR
 mkdir -p $REPOS || exit $ERROR_MKDIR
 
 # Import (minimized) signing key from
 # http://www.gnupg.org/(en)/signature_key.html
-gpg --import << EOGPG || exit $ERROR_GPG
+gpg --import << EOKEY || exit $ERROR_GPG
 -----BEGIN PGP PUBLIC KEY BLOCK-----
 
 mI4EQ7f6xwEEANCZGXorXMkDKpNsRnf+ZhqHOPmDcEKPDkplcCL2PFACN7QaK4Re
@@ -71,10 +74,10 @@ FFTgKHHzBz39bzeStyQgTm5plGaOEJcJayIr07DaeBtcC/dMoVUJswybKMFtP7fU
 z05PRKjChvxrWzhe/Yn6BAmPF+6YxQo2W98rzq0THS5wKJjXmHw=
 =3fgc
 -----END PGP PUBLIC KEY BLOCK-----
-EOGPG
+EOKEY
 
 # Dowload source and its signature, if necessary
-SRC="$SRC_NAME-$VERSION.tar.bz2"
+SRC="$PKG_SRC.tar.bz2"
 URL="ftp://ftp.gnupg.org/gcrypt/gnupg/$SRC"
 
 if [ ! -f "$SRC_DIR/$SRC" ]; then
@@ -87,10 +90,13 @@ fi
 # Check source's signature
 gpg --verify $SRC_DIR/$SRC.sig $SRC_DIR/$SRC || exit $ERROR_GPG
 
-# Untar, configure, compile and install
+# Untar, patch, configure, compile and install
 tar --no-same-owner --no-same-permissions -xvf $SRC_DIR/$SRC || exit $ERROR_TAR
-cd $SRC_NAME-$VERSION
+cd $PKG_SRC/g10
+patch -p0 < $CWD/filter-context-20-small.diff || exit $ERROR_PATCH
+cd ..
 CFLAGS="$SLKCFLAGS" \
+  CXXFLAGS="$SLKCFLAGS" \
   ./configure \
   --prefix=$PREFIX --libdir=$LIBDIR \
   --infodir=$PREFIX/info --mandir=$PREFIX/man \
@@ -106,16 +112,36 @@ make install DESTDIR=$PKG || exit $ERROR_INSTALL
     xargs strip --strip-unneeded 2> /dev/null
 )
 
+# Avoid overwriting share/gnupg/ files, from the original gnupg package
+mv -f $PKG/$PREFIX/share/gnupg $PKG/$PREFIX/share/gnupg2
+
 # Install gpg2, gpgv2, gpg-agent, and gpgsm already suid root
 chmod 4755 $PKG/$PREFIX/bin/{gpg2,gpgv2,gpg-agent,gpgsm}
 
-# Compress info and man pages
-mv -f $PKG/$PREFIX/share/gnupg $PKG/$PREFIX/share/gnupg2
-rm -f $PKG/$PREFIX/info/dir
-gzip -9 $PKG/$PREFIX/info/*
-gzip -9 $PKG/$PREFIX/man/*/*
+# Compress and link manpages, if any
+if [ -d $PKG/$PREFIX/man ]; then
+  ( cd $PKG/$PREFIX/man
+    for manpagedir in $(find . -type d -name "man*") ; do
+      ( cd $manpagedir
+        for eachpage in $( find . -type l -maxdepth 1) ; do
+          ln -s $( readlink $eachpage ).gz $eachpage.gz
+          rm $eachpage
+        done
+        gzip -9 *.?
+      )
+    done
+  )
+fi
+
+# Compress info files, if any
+if [ -d $PKG/$PREFIX/info ]; then
+  ( cd $PKG/$PREFIX/info
+    rm -f dir
+    gzip -9 *
+  )
+fi
 
-# Install documentation
+# Install documentation and examples
 DOCS="ABOUT-NLS AUTHORS COPYING ChangeLog INSTALL NEWS README* THANKS TODO \
      VERSION doc/DETAILS doc/HACKING doc/KEYSERVER doc/OpenPGP doc/TRANSLATE \
      doc/examples doc/*.png"
@@ -126,9 +152,9 @@ cp -a $DOCS $PKG/$PREFIX/doc/$PKG_NAME-$VERSION
   ln -sf $PREFIX/share/$PKG_NAME/faq.html .
 )
 
-# Add slack-desc file
+# Add package description (slack-desc)
 mkdir -p $PKG/install || exit $ERROR_MKDIR
-cat << EOF > $PKG/install/slack-desc
+cat << EODESC > $PKG/install/slack-desc
 # HOW TO EDIT THIS FILE:
 # The "handy ruler" below makes it easier to edit a package description.  Line
 # up the first '|' above the ':' following the base package name, and the '|'
@@ -148,13 +174,13 @@ gnupg2: standards.
 gnupg2:
 gnupg2: For more information, http://www.gnupg.org/
 gnupg2:
-EOF
+EODESC
 
 # Build the package
 cd $PKG
 makepkg -l y -c n $REPOS/$PKG_NAME-$VERSION-$ARCH-$BUILD.tgz || exit $ERROR_MKPKG
 
-# Delete build directory, if requested
+# Delete source and build directories, if requested
 if [ "$CLEANUP" == "yes" ]; then
-  rm -rf $PKG $CWD/$PACKAGE-$VERSION
+  rm -rf $CWD/$PKG_SRC $PKG
 fi
index c0a6634b132f09c2280de292bae45446e9396d5c..f312d401d5214383c6dd2fce31d5428a6f0ff3b0 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/bash
 #
-# SlackBuild for libassuan:
+# SlackBuild for libassuan
 # http://www.gnupg.org/(en)/related_software/libassuan/
 #
 # Author: Luis ( luis at riseup d0t net )
@@ -16,23 +16,25 @@ elif [ -f /etc/slackbuildrc ]; then
 fi
 
 # Set variables
-PACKAGE="libassuan"
+SRC_NAME="libassuan"
+PKG_NAME="libassuan"
 ARCH=${ARCH:=i486}
 VERSION=${VERSION:=1.0.1}
 BUILD=${BUILD:=1ls}
 SRC_DIR=${SRC_DIR:=$CWD}
 TMP=${TMP:=/tmp}
-PKG=${PKG:=$TMP/package-$PACKAGE}
+PKG=${PKG:=$TMP/package-$PKG_NAME}
 REPOS=${REPOS:=$TMP}
-PREFIX=${PREFIX:=/usr}
+PREFIX=${PREFIX:=/usr/local}
+PKG_SRC=$SRC_NAME-$VERSION
 
 # Set system libraries' path and optmization flags based on $ARCH
 LIBDIR=$PREFIX/lib
 
 if [ "$ARCH" = "i386" ]; then
-  SLKCFLAGS="-O2 -march=i386 -mtune=i686"
+  SLKCFLAGS="-O2 -march=i386 -mcpu=i686"
 elif [ "$ARCH" = "i486" ]; then
-  SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+  SLKCFLAGS="-O2 -march=i486 -mcpu=i686"
 elif [ "$ARCH" = "i686" ]; then
   SLKCFLAGS="-O2 -march=i686"
 elif [ "$ARCH" = "s390" ]; then
@@ -49,15 +51,17 @@ ERROR_TAR=37;       ERROR_MKPKG=38;     ERROR_GPG=39
 ERROR_PATCH=40;     ERROR_VCS=41;       ERROR_MKDIR=42
 
 # Clean up any leftovers of previous builds
-rm -rf $PACKAGE-$VERSION 2>/dev/null
-rm -rf $PKG 2>/dev/null
+rm -rf $PKG_SRC 2> /dev/null
+rm -rf $PKG 2> /dev/null
+
+# Create directories, if necessary
 mkdir -p $SRC_DIR || exit $ERROR_MKDIR
 mkdir -p $PKG || exit $ERROR_MKDIR
 mkdir -p $REPOS || exit $ERROR_MKDIR
 
 # Import (minimized) signing key from
 # http://www.gnupg.org/(en)/signature_key.html
-gpg --import << EOGPG || exit $ERROR_GPG
+gpg --import << EOKEY || exit $ERROR_GPG
 -----BEGIN PGP PUBLIC KEY BLOCK-----
 
 mI4EQ7f6xwEEANCZGXorXMkDKpNsRnf+ZhqHOPmDcEKPDkplcCL2PFACN7QaK4Re
@@ -70,10 +74,10 @@ FFTgKHHzBz39bzeStyQgTm5plGaOEJcJayIr07DaeBtcC/dMoVUJswybKMFtP7fU
 z05PRKjChvxrWzhe/Yn6BAmPF+6YxQo2W98rzq0THS5wKJjXmHw=
 =3fgc
 -----END PGP PUBLIC KEY BLOCK-----
-EOGPG
+EOKEY
 
 # Dowload source and its signature, if necessary
-SRC="$PACKAGE-$VERSION.tar.bz2"
+SRC="$PKG_SRC.tar.bz2"
 URL="ftp://ftp.gnupg.org/gcrypt/libassuan/$SRC"
 
 if [ ! -f "$SRC_DIR/$SRC" ]; then
@@ -88,8 +92,9 @@ gpg --verify $SRC_DIR/$SRC.sig $SRC_DIR/$SRC || exit $ERROR_GPG
 
 # Untar, configure, compile and install
 tar --no-same-owner --no-same-permissions -xvf $SRC_DIR/$SRC || exit $ERROR_TAR
-cd $PACKAGE-$VERSION
+cd $PKG_SRC
 CFLAGS="$SLKCFLAGS" \
+  CXXFLAGS="$SLKCFLAGS" \
   ./configure \
   --prefix=$PREFIX --libdir=$LIBDIR \
   --infodir=$PREFIX/info --mandir=$PREFIX/man || exit $ERROR_CONF
@@ -104,18 +109,37 @@ make install DESTDIR=$PKG || exit $ERROR_INSTALL
     xargs strip --strip-unneeded 2> /dev/null
 )
 
-# Compress info pages
-rm -f $PKG/$PREFIX/info/dir
-gzip -9 $PKG/$PREFIX/info/*
+# Compress and link manpages, if any
+if [ -d $PKG/$PREFIX/man ]; then
+  ( cd $PKG/$PREFIX/man
+    for manpagedir in $(find . -type d -name "man*") ; do
+      ( cd $manpagedir
+        for eachpage in $( find . -type l -maxdepth 1) ; do
+          ln -s $( readlink $eachpage ).gz $eachpage.gz
+          rm $eachpage
+        done
+        gzip -9 *.?
+      )
+    done
+  )
+fi
+
+# Compress info files, if any
+if [ -d $PKG/$PREFIX/info ]; then
+  ( cd $PKG/$PREFIX/info
+    rm -f dir
+    gzip -9 *
+  )
+fi
 
 # Install documentation
 DOCS="AUTHORS COPYING* ChangeLog INSTALL NEWS README* THANKS TODO VERSION"
-mkdir -p $PKG/$PREFIX/doc/$PACKAGE-$VERSION || exit $ERROR_MKDIR
-cp -a $DOCS $PKG/$PREFIX/doc/$PACKAGE-$VERSION
+mkdir -p $PKG/$PREFIX/doc/$PKG_NAME-$VERSION || exit $ERROR_MKDIR
+cp -a $DOCS $PKG/$PREFIX/doc/$PKG_NAME-$VERSION
 
-# Add slack-desc file
+# Add package description (slack-desc)
 mkdir -p $PKG/install || exit $ERROR_MKDIR
-cat << EOF > $PKG/install/slack-desc
+cat << EODESC > $PKG/install/slack-desc
 # HOW TO EDIT THIS FILE:
 # The "handy ruler" below makes it easier to edit a package description.  Line
 # up the first '|' above the ':' following the base package name, and the '|'
@@ -135,13 +159,13 @@ libassuan: http://www.gnupg.org/(en)/related_software/libassuan/
 libassuan:
 libassuan:
 libassuan:
-EOF
+EODESC
 
 # Build the package
 cd $PKG
-makepkg -l y -c n $REPOS/$PACKAGE-$VERSION-$ARCH-$BUILD.tgz || exit $ERROR_MKPKG
+makepkg -l y -c n $REPOS/$PKG_NAME-$VERSION-$ARCH-$BUILD.tgz || exit $ERROR_MKPKG
 
-# Delete build directory, if requested
+# Delete source and build directories, if requested
 if [ "$CLEANUP" == "yes" ]; then
-  rm -rf $PKG $CWD/$PACKAGE-$VERSION
+  rm -rf $CWD/$PKG_SRC $PKG
 fi
index c626ea60ed6413340534d7594abd26e4282a994c..69948a381e9ff4e4cef90003dcb91de0555ffb49 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/bash
 #
-# SlackBuild for libgcrypt:
+# SlackBuild for libgcrypt
 # http://directory.fsf.org/security/libgcrypt.html
 #
 # Author: Luis ( luis at riseup d0t net )
@@ -16,23 +16,25 @@ elif [ -f /etc/slackbuildrc ]; then
 fi
 
 # Set variables
-PACKAGE="libgcrypt"
+SRC_NAME="libgcrypt"
+PKG_NAME="libgcrypt"
 ARCH=${ARCH:=i486}
 VERSION=${VERSION:=1.2.3}
 BUILD=${BUILD:=1ls}
 SRC_DIR=${SRC_DIR:=$CWD}
 TMP=${TMP:=/tmp}
-PKG=${PKG:=$TMP/package-$PACKAGE}
+PKG=${PKG:=$TMP/package-$PKG_NAME}
 REPOS=${REPOS:=$TMP}
-PREFIX=${PREFIX:=/usr}
+PREFIX=${PREFIX:=/usr/local}
+PKG_SRC=$SRC_NAME-$VERSION
 
 # Set system libraries' path and optmization flags based on $ARCH
 LIBDIR=$PREFIX/lib
 
 if [ "$ARCH" = "i386" ]; then
-  SLKCFLAGS="-O2 -march=i386 -mtune=i686"
+  SLKCFLAGS="-O2 -march=i386 -mcpu=i686"
 elif [ "$ARCH" = "i486" ]; then
-  SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+  SLKCFLAGS="-O2 -march=i486 -mcpu=i686"
 elif [ "$ARCH" = "i686" ]; then
   SLKCFLAGS="-O2 -march=i686"
 elif [ "$ARCH" = "s390" ]; then
@@ -49,15 +51,17 @@ ERROR_TAR=37;       ERROR_MKPKG=38;     ERROR_GPG=39
 ERROR_PATCH=40;     ERROR_VCS=41;       ERROR_MKDIR=42
 
 # Clean up any leftovers of previous builds
-rm -rf $PACKAGE-$VERSION 2> /dev/null
+rm -rf $PKG_SRC 2> /dev/null
 rm -rf $PKG 2> /dev/null
+
+# Create directories, if necessary
 mkdir -p $SRC_DIR || exit $ERROR_MKDIR
 mkdir -p $PKG || exit $ERROR_MKDIR
 mkdir -p $REPOS || exit $ERROR_MKDIR
 
 # Import (minimized) signing key from
 # http://www.gnupg.org/(en)/signature_key.html
-gpg --import << EOGPG || exit $ERROR_GPG
+gpg --import << EOKEY || exit $ERROR_GPG
 -----BEGIN PGP PUBLIC KEY BLOCK-----
 
 mI4EQ7f6xwEEANCZGXorXMkDKpNsRnf+ZhqHOPmDcEKPDkplcCL2PFACN7QaK4Re
@@ -70,10 +74,10 @@ FFTgKHHzBz39bzeStyQgTm5plGaOEJcJayIr07DaeBtcC/dMoVUJswybKMFtP7fU
 z05PRKjChvxrWzhe/Yn6BAmPF+6YxQo2W98rzq0THS5wKJjXmHw=
 =3fgc
 -----END PGP PUBLIC KEY BLOCK-----
-EOGPG
+EOKEY
 
 # Dowload source and its signature, if necessary
-SRC="$PACKAGE-$VERSION.tar.bz2"
+SRC="$PKG_SRC.tar.bz2"
 URL="ftp://ftp.gnupg.org/gcrypt/libgcrypt/$SRC"
 
 if [ ! -f "$SRC_DIR/$SRC" ]; then
@@ -88,8 +92,9 @@ gpg --verify $SRC_DIR/$SRC.sig $SRC_DIR/$SRC || exit $ERROR_GPG
 
 # Untar, configure, compile and install
 tar --no-same-owner --no-same-permissions -xvf $SRC_DIR/$SRC || exit $ERROR_TAR
-cd $PACKAGE-$VERSION
+cd $PKG_SRC
 CFLAGS="$SLKCFLAGS" \
+  CXXFLAGS="$SLKCFLAGS" \
   ./configure \
   --prefix=$PREFIX --libdir=$LIBDIR \
   --infodir=$PREFIX/info --mandir=$PREFIX/man \
@@ -105,18 +110,37 @@ make install DESTDIR=$PKG || exit $ERROR_INSTALL
     xargs strip --strip-unneeded 2> /dev/null
 )
 
-# Compress info pages
-rm -f $PKG/$PREFIX/info/dir
-gzip -9 $PKG/$PREFIX/info/*
+# Compress and link manpages, if any
+if [ -d $PKG/$PREFIX/man ]; then
+  ( cd $PKG/$PREFIX/man
+    for manpagedir in $(find . -type d -name "man*") ; do
+      ( cd $manpagedir
+        for eachpage in $( find . -type l -maxdepth 1) ; do
+          ln -s $( readlink $eachpage ).gz $eachpage.gz
+          rm $eachpage
+        done
+        gzip -9 *.?
+      )
+    done
+  )
+fi
+
+# Compress info files, if any
+if [ -d $PKG/$PREFIX/info ]; then
+  ( cd $PKG/$PREFIX/info
+    rm -f dir
+    gzip -9 *
+  )
+fi
 
 # Install documentation
 DOCS="AUTHORS BUGS COPYING* ChangeLog INSTALL NEWS README* THANKS TODO VERSION"
-mkdir -p $PKG/$PREFIX/doc/$PACKAGE-$VERSION || exit $ERROR_MKDIR
-cp -a $DOCS $PKG/$PREFIX/doc/$PACKAGE-$VERSION
+mkdir -p $PKG/$PREFIX/doc/$PKG_NAME-$VERSION || exit $ERROR_MKDIR
+cp -a $DOCS $PKG/$PREFIX/doc/$PKG_NAME-$VERSION
 
-# Add slack-desc file
+# Add package description (slack-desc)
 mkdir -p $PKG/install || exit $ERROR_MKDIR
-cat << EOF > $PKG/install/slack-desc
+cat << EODESC > $PKG/install/slack-desc
 # HOW TO EDIT THIS FILE:
 # The "handy ruler" below makes it easier to edit a package description.  Line
 # up the first '|' above the ':' following the base package name, and the '|'
@@ -136,13 +160,13 @@ libgcrypt:
 libgcrypt: For more information,
 libgcrypt: http://directory.fsf.org/security/libgcrypt.html
 libgcrypt:
-EOF
+EODESC
 
 # Build the package
 cd $PKG
-makepkg -l y -c n $REPOS/$PACKAGE-$VERSION-$ARCH-$BUILD.tgz || exit $ERROR_MKPKG
+makepkg -l y -c n $REPOS/$PKG_NAME-$VERSION-$ARCH-$BUILD.tgz || exit $ERROR_MKPKG
 
-# Delete build directory, if requested
+# Delete source and build directories, if requested
 if [ "$CLEANUP" == "yes" ]; then
-  rm -rf $PKG $CWD/$PACKAGE-$VERSION
+  rm -rf $CWD/$PKG_SRC $PKG
 fi
index 30e467bd1243322e2ed2af546eec72285ef42c2c..d476e5312da6062160b9ec2ffed4e4810531d5c3 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/bash
 #
-# SlackBuild for libgpg-error:
+# SlackBuild for libgpg-error
 # http://www.gnupg.org/(en)/related_software/libgpg-error/
 #
 # Author: Luis ( luis at riseup d0t net )
@@ -16,23 +16,25 @@ elif [ -f /etc/slackbuildrc ]; then
 fi
 
 # Set variables
-PACKAGE="libgpg-error"
+SRC_NAME="libgpg-error"
+PKG_NAME="libgpg-error"
 ARCH=${ARCH:=i486}
 VERSION=${VERSION:=1.4}
 BUILD=${BUILD:=1ls}
 SRC_DIR=${SRC_DIR:=$CWD}
 TMP=${TMP:=/tmp}
-PKG=${PKG:=$TMP/package-$PACKAGE}
+PKG=${PKG:=$TMP/package-$PKG_NAME}
 REPOS=${REPOS:=$TMP}
-PREFIX=${PREFIX:=/usr}
+PREFIX=${PREFIX:=/usr/local}
+PKG_SRC=$SRC_NAME-$VERSION
 
 # Set system libraries' path and optmization flags based on $ARCH
 LIBDIR=$PREFIX/lib
 
 if [ "$ARCH" = "i386" ]; then
-  SLKCFLAGS="-O2 -march=i386 -mtune=i686"
+  SLKCFLAGS="-O2 -march=i386 -mcpu=i686"
 elif [ "$ARCH" = "i486" ]; then
-  SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+  SLKCFLAGS="-O2 -march=i486 -mcpu=i686"
 elif [ "$ARCH" = "i686" ]; then
   SLKCFLAGS="-O2 -march=i686"
 elif [ "$ARCH" = "s390" ]; then
@@ -49,15 +51,17 @@ ERROR_TAR=37;       ERROR_MKPKG=38;     ERROR_GPG=39
 ERROR_PATCH=40;     ERROR_VCS=41;       ERROR_MKDIR=42
 
 # Clean up any leftovers of previous builds
-rm -rf $PACKAGE-$VERSION 2> /dev/null
+rm -rf $PKG_SRC 2> /dev/null
 rm -rf $PKG 2> /dev/null
+
+# Create directories, if necessary
 mkdir -p $SRC_DIR || exit $ERROR_MKDIR
 mkdir -p $PKG || exit $ERROR_MKDIR
 mkdir -p $REPOS || exit $ERROR_MKDIR
 
 # Import (minimized) signing key from
 # http://www.gnupg.org/(en)/signature_key.html
-gpg --import << EOGPG || exit $ERROR_GPG
+gpg --import << EOKEY || exit $ERROR_GPG
 -----BEGIN PGP PUBLIC KEY BLOCK-----
 
 mI4EQ7f6xwEEANCZGXorXMkDKpNsRnf+ZhqHOPmDcEKPDkplcCL2PFACN7QaK4Re
@@ -70,10 +74,10 @@ FFTgKHHzBz39bzeStyQgTm5plGaOEJcJayIr07DaeBtcC/dMoVUJswybKMFtP7fU
 z05PRKjChvxrWzhe/Yn6BAmPF+6YxQo2W98rzq0THS5wKJjXmHw=
 =3fgc
 -----END PGP PUBLIC KEY BLOCK-----
-EOGPG
+EOKEY
 
 # Dowload source and its signature, if necessary
-SRC="$PACKAGE-$VERSION.tar.bz2"
+SRC="$PKG_SRC.tar.bz2"
 URL="http://ftp.gnupg.org/GnuPG/libgpg-error/$SRC"
 
 if [ ! -f "$SRC_DIR/$SRC" ]; then
@@ -88,8 +92,9 @@ gpg --verify $SRC_DIR/$SRC.sig $SRC_DIR/$SRC || exit $ERROR_GPG
 
 # Untar, configure, compile and install
 tar --no-same-owner --no-same-permissions -xvf $SRC_DIR/$SRC || exit $ERROR_TAR
-cd $PACKAGE-$VERSION
+cd $PKG_SRC
 CFLAGS="$SLKCFLAGS" \
+  CXXFLAGS="$SLKCFLAGS" \
   ./configure \
   --prefix=$PREFIX --libdir=$LIBDIR \
   --infodir=$PREFIX/info --mandir=$PREFIX/man || exit $ERROR_CONF
@@ -104,14 +109,37 @@ make install DESTDIR=$PKG || exit $ERROR_INSTALL
     xargs strip --strip-unneeded 2> /dev/null
 )
 
+# Compress and link manpages, if any
+if [ -d $PKG/$PREFIX/man ]; then
+  ( cd $PKG/$PREFIX/man
+    for manpagedir in $(find . -type d -name "man*") ; do
+      ( cd $manpagedir
+        for eachpage in $( find . -type l -maxdepth 1) ; do
+          ln -s $( readlink $eachpage ).gz $eachpage.gz
+          rm $eachpage
+        done
+        gzip -9 *.?
+      )
+    done
+  )
+fi
+
+# Compress info files, if any
+if [ -d $PKG/$PREFIX/info ]; then
+  ( cd $PKG/$PREFIX/info
+    rm -f dir
+    gzip -9 *
+  )
+fi
+
 # Install documentation
 DOCS="ABOUT-NLS AUTHORS ChangeLog COPYING* INSTALL NEWS README"
-mkdir -p $PKG/$PREFIX/doc/$PACKAGE-$VERSION || exit $ERROR_MKDIR
-cp -a $DOCS $PKG/$PREFIX/doc/$PACKAGE-$VERSION
+mkdir -p $PKG/$PREFIX/doc/$PKG_NAME-$VERSION || exit $ERROR_MKDIR
+cp -a $DOCS $PKG/$PREFIX/doc/$PKG_NAME-$VERSION
 
-# Add slack-desc file
+# Add package description (slack-desc)
 mkdir -p $PKG/install || exit $ERROR_MKDIR
-cat << EOF > $PKG/install/slack-desc
+cat << EODESC > $PKG/install/slack-desc
 # HOW TO EDIT THIS FILE:
 # The "handy ruler" below makes it easier to edit a package description.  Line
 # up the first '|' above the ':' following the base package name, and the '|'
@@ -131,13 +159,13 @@ libgpg-error: For more information,
 libgpg-error: http://www.gnupg.org/(en)/related_software/libgpg-error/
 libgpg-error:
 libgpg-error:
-EOF
+EODESC
 
 # Build the package
 cd $PKG
-makepkg -l y -c n $REPOS/$PACKAGE-$VERSION-$ARCH-$BUILD.tgz || exit $ERROR_MKPKG
+makepkg -l y -c n $REPOS/$PKG_NAME-$VERSION-$ARCH-$BUILD.tgz || exit $ERROR_MKPKG
 
-# Delete build directory, if requested
+# Delete source and build directories, if requested
 if [ "$CLEANUP" == "yes" ]; then
-  rm -rf $PKG $CWD/$PACKAGE-$VERSION
+  rm -rf $CWD/$PKG_SRC $PKG
 fi
index 9d51016a1494f0eba08cf73a9abbb136b83d939c..9e7e9d6f813ce367a881713a61655c30f084401a 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/bash
 #
-# SlackBuild for libksba:
+# SlackBuild for libksba
 # http://www.gnupg.org/(en)/related_software/libksba/
 #
 # Author: Luis ( luis at riseup d0t net )
@@ -16,23 +16,25 @@ elif [ -f /etc/slackbuildrc ]; then
 fi
 
 # Set variables
-PACKAGE="libksba"
+SRC_NAME="libksba"
+PKG_NAME="libksba"
 ARCH=${ARCH:=i486}
 VERSION=${VERSION:=1.0.1}
 BUILD=${BUILD:=1ls}
 SRC_DIR=${SRC_DIR:=$CWD}
 TMP=${TMP:=/tmp}
-PKG=${PKG:=$TMP/package-$PACKAGE}
+PKG=${PKG:=$TMP/package-$PKG_NAME}
 REPOS=${REPOS:=$TMP}
-PREFIX=${PREFIX:=/usr}
+PREFIX=${PREFIX:=/usr/local}
+PKG_SRC=$SRC_NAME-$VERSION
 
 # Set system libraries' path and optmization flags based on $ARCH
 LIBDIR=$PREFIX/lib
 
 if [ "$ARCH" = "i386" ]; then
-  SLKCFLAGS="-O2 -march=i386 -mtune=i686"
+  SLKCFLAGS="-O2 -march=i386 -mcpu=i686"
 elif [ "$ARCH" = "i486" ]; then
-  SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+  SLKCFLAGS="-O2 -march=i486 -mcpu=i686"
 elif [ "$ARCH" = "i686" ]; then
   SLKCFLAGS="-O2 -march=i686"
 elif [ "$ARCH" = "s390" ]; then
@@ -49,15 +51,17 @@ ERROR_TAR=37;       ERROR_MKPKG=38;     ERROR_GPG=39
 ERROR_PATCH=40;     ERROR_VCS=41;       ERROR_MKDIR=42
 
 # Clean up any leftovers of previous builds
-rm -rf $PACKAGE-$VERSION 2> /dev/null
+rm -rf $PKG_SRC 2> /dev/null
 rm -rf $PKG 2> /dev/null
+
+# Create directories, if necessary
 mkdir -p $SRC_DIR || exit $ERROR_MKDIR
 mkdir -p $PKG || exit $ERROR_MKDIR
 mkdir -p $REPOS || exit $ERROR_MKDIR
 
 # Import (minimized) signing key from
 # http://www.gnupg.org/(en)/signature_key.html
-gpg --import << EOGPG || exit $ERROR_GPG
+gpg --import << EOKEY || exit $ERROR_GPG
 -----BEGIN PGP PUBLIC KEY BLOCK-----
 
 mI4EQ7f6xwEEANCZGXorXMkDKpNsRnf+ZhqHOPmDcEKPDkplcCL2PFACN7QaK4Re
@@ -70,10 +74,10 @@ FFTgKHHzBz39bzeStyQgTm5plGaOEJcJayIr07DaeBtcC/dMoVUJswybKMFtP7fU
 z05PRKjChvxrWzhe/Yn6BAmPF+6YxQo2W98rzq0THS5wKJjXmHw=
 =3fgc
 -----END PGP PUBLIC KEY BLOCK-----
-EOGPG
+EOKEY
 
 # Dowload source and its signature, if necessary
-SRC="$PACKAGE-$VERSION.tar.bz2"
+SRC="$PKG_SRC.tar.bz2"
 URL="ftp://ftp.gnupg.org/gcrypt/libksba/$SRC"
 
 if [ ! -f "$SRC_DIR/$SRC" ]; then
@@ -88,8 +92,9 @@ gpg --verify $SRC_DIR/$SRC.sig $SRC_DIR/$SRC || exit $ERROR_GPG
 
 # Untar, configure, compile and install
 tar --no-same-owner --no-same-permissions -xvf $SRC_DIR/$SRC || exit $ERROR_TAR
-cd $PACKAGE-$VERSION
+cd $PKG_SRC
 CFLAGS="$SLKCFLAGS" \
+  CXXFLAGS="$SLKCFLAGS" \
   ./configure \
   --prefix=$PREFIX --libdir=$LIBDIR \
   --infodir=$PREFIX/info --mandir=$PREFIX/man || exit $ERROR_CONF
@@ -104,18 +109,37 @@ make install DESTDIR=$PKG || exit $ERROR_INSTALL
     xargs strip --strip-unneeded 2> /dev/null
 )
 
-# Compress info pages
-rm -f $PKG/$PREFIX/info/dir
-gzip -9 $PKG/$PREFIX/info/*
+# Compress and link manpages, if any
+if [ -d $PKG/$PREFIX/man ]; then
+  ( cd $PKG/$PREFIX/man
+    for manpagedir in $(find . -type d -name "man*") ; do
+      ( cd $manpagedir
+        for eachpage in $( find . -type l -maxdepth 1) ; do
+          ln -s $( readlink $eachpage ).gz $eachpage.gz
+          rm $eachpage
+        done
+        gzip -9 *.?
+      )
+    done
+  )
+fi
+
+# Compress info files, if any
+if [ -d $PKG/$PREFIX/info ]; then
+  ( cd $PKG/$PREFIX/info
+    rm -f dir
+    gzip -9 *
+  )
+fi
 
 # Install documentation
 DOCS="AUTHORS COPYING ChangeLog INSTALL NEWS README THANKS TODO VERSION"
-mkdir -p $PKG/$PREFIX/doc/$PACKAGE-$VERSION || exit $ERROR_MKDIR
-cp -a $DOCS $PKG/$PREFIX/doc/$PACKAGE-$VERSION
+mkdir -p $PKG/$PREFIX/doc/$PKG_NAME-$VERSION || exit $ERROR_MKDIR
+cp -a $DOCS $PKG/$PREFIX/doc/$PKG_NAME-$VERSION
 
-# Add slack-desc file
+# Add package description (slack-desc)
 mkdir -p $PKG/install || exit $ERROR_MKDIR
-cat << EOF > $PKG/install/slack-desc
+cat << EODESC > $PKG/install/slack-desc
 # HOW TO EDIT THIS FILE:
 # The "handy ruler" below makes it easier to edit a package description.  Line
 # up the first '|' above the ':' following the base package name, and the '|'
@@ -135,13 +159,13 @@ libksba: For more information,
 libksba: http://www.gnupg.org/(en)/related_software/libksba/
 libksba:
 libksba:
-EOF
+EODESC
 
 # Build the package
 cd $PKG
-makepkg -l y -c n $REPOS/$PACKAGE-$VERSION-$ARCH-$BUILD.tgz || exit $ERROR_MKPKG
+makepkg -l y -c n $REPOS/$PKG_NAME-$VERSION-$ARCH-$BUILD.tgz || exit $ERROR_MKPKG
 
-# Delete build directory, if requested
+# Delete source and build directories, if requested
 if [ "$CLEANUP" == "yes" ]; then
-  rm -rf $PKG $CWD/$PACKAGE-$VERSION
+  rm -rf $CWD/$PKG_SRC $PKG
 fi
index 5f4af38565501e37563827106a65f018929a89ae..68257c1e73d867bf610b0178e2293f0d535cd18c 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/bash
 #
-# SlackBuild for pth (GNU Portable Threads):
+# SlackBuild for pth (GNU Portable Threads)
 # http://www.gnu.org/software/pth/
 #
 # Author: Luis ( luis at riseup d0t net )
@@ -25,15 +25,16 @@ SRC_DIR=${SRC_DIR:=$CWD}
 TMP=${TMP:=/tmp}
 PKG=${PKG:=$TMP/package-$PKG_NAME}
 REPOS=${REPOS:=$TMP}
-PREFIX=${PREFIX:=/usr}
+PREFIX=${PREFIX:=/usr/local}
+PKG_SRC=$SRC_NAME-$VERSION
 
 # Set system libraries' path and optmization flags based on $ARCH
 LIBDIR=$PREFIX/lib
 
 if [ "$ARCH" = "i386" ]; then
-  SLKCFLAGS="-O2 -march=i386 -mtune=i686"
+  SLKCFLAGS="-O2 -march=i386 -mcpu=i686"
 elif [ "$ARCH" = "i486" ]; then
-  SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+  SLKCFLAGS="-O2 -march=i486 -mcpu=i686"
 elif [ "$ARCH" = "i686" ]; then
   SLKCFLAGS="-O2 -march=i686"
 elif [ "$ARCH" = "s390" ]; then
@@ -50,15 +51,17 @@ ERROR_TAR=37;       ERROR_MKPKG=38;     ERROR_GPG=39
 ERROR_PATCH=40;     ERROR_VCS=41;       ERROR_MKDIR=42
 
 # Clean up any leftovers of previous builds
-rm -rf $SRC_NAME-$VERSION 2> /dev/null
+rm -rf $PKG_SRC 2> /dev/null
 rm -rf $PKG 2> /dev/null
+
+# Create directories, if necessary
 mkdir -p $SRC_DIR || exit $ERROR_MKDIR
 mkdir -p $PKG || exit $ERROR_MKDIR
 mkdir -p $REPOS || exit $ERROR_MKDIR
 
 # Import (minimized) signing key from
 # ftp://ftp.gnu.org/gnu/gnu-keyring.gpg
-gpg --import << EOGPG || exit $ERROR_GPG
+gpg --import << EOKEY || exit $ERROR_GPG
 -----BEGIN PGP PUBLIC KEY BLOCK-----
 
 mQGiBDxKtR0RBACh9cmwVQjGuRAH9zEIV6s5ZhNRjG0Mk9sGjwkP1bXRHhRq64Dp
@@ -88,10 +91,10 @@ EgkQbnRKy6nAnjAHZUdQRwABASWPAJoCqfTDhzFQOngPku+kWHdajWj1pgCeIIKl
 ZKGPGjkCEUGma0qd+GUAh4A=
 =rGe0
 -----END PGP PUBLIC KEY BLOCK-----
-EOGPG
+EOKEY
 
 # Dowload source and its signature, if necessary
-SRC="$SRC_NAME-$VERSION.tar.gz"
+SRC="$PKG_SRC.tar.gz"
 URL="ftp://ftp.gnu.org/gnu/pth/$SRC"
 
 if [ ! -f "$SRC_DIR/$SRC" ]; then
@@ -106,8 +109,9 @@ gpg --verify $SRC_DIR/$SRC.sig $SRC_DIR/$SRC || exit $ERROR_GPG
 
 # Untar, configure, compile and install
 tar --no-same-owner --no-same-permissions -xvf $SRC_DIR/$SRC || exit $ERROR_TAR
-cd $SRC_NAME-$VERSION
+cd $PKG_SRC
 CFLAGS="$SLKCFLAGS" \
+  CXXFLAGS="$SLKCFLAGS" \
   ./configure \
   --prefix=$PREFIX --libdir=$LIBDIR || exit $ERROR_CONF
 make || exit $ERROR_MAKE
@@ -122,8 +126,28 @@ make install DESTDIR=$PKG || exit $ERROR_INSTALL
     xargs strip --strip-unneeded 2> /dev/null
 )
 
-# Compress man pages
-gzip -9 $PKG/$PREFIX/man/*/*
+# Compress and link manpages, if any
+if [ -d $PKG/$PREFIX/man ]; then
+  ( cd $PKG/$PREFIX/man
+    for manpagedir in $(find . -type d -name "man*") ; do
+      ( cd $manpagedir
+        for eachpage in $( find . -type l -maxdepth 1) ; do
+          ln -s $( readlink $eachpage ).gz $eachpage.gz
+          rm $eachpage
+        done
+        gzip -9 *.?
+      )
+    done
+  )
+fi
+
+# Compress info files, if any
+if [ -d $PKG/$PREFIX/info ]; then
+  ( cd $PKG/$PREFIX/info
+    rm -f dir
+    gzip -9 *
+  )
+fi
 
 # Install documentation
 DOCS="ANNOUNCE AUTHORS COPYING ChangeLog HACKING HISTORY INSTALL NEWS PORTING \
@@ -131,9 +155,9 @@ DOCS="ANNOUNCE AUTHORS COPYING ChangeLog HACKING HISTORY INSTALL NEWS PORTING \
 mkdir -p $PKG/$PREFIX/doc/$PKG_NAME-$VERSION || exit $ERROR_MKDIR
 cp -a $DOCS $PKG/$PREFIX/doc/$PKG_NAME-$VERSION
 
-# Add slack-desc file
+# Add package description (slack-desc)
 mkdir -p $PKG/install || exit $ERROR_MKDIR
-cat << EOF > $PKG/install/slack-desc
+cat << EODESC > $PKG/install/slack-desc
 # HOW TO EDIT THIS FILE:
 # The "handy ruler" below makes it easier to edit a package description.  Line
 # up the first '|' above the ':' following the base package name, and the '|'
@@ -153,13 +177,13 @@ libpth: stack, signal mask and errno variable.
 libpth:
 libpth: For more information, http://www.gnu.org/software/pth/
 libpth:
-EOF
+EODESC
 
 # Build the package
 cd $PKG
 makepkg -l y -c n $REPOS/$PKG_NAME-$VERSION-$ARCH-$BUILD.tgz || exit $ERROR_MKPKG
 
-# Delete build directory, if requested
+# Delete source and build directories, if requested
 if [ "$CLEANUP" == "yes" ]; then
-  rm -rf $PKG $CWD/$PACKAGE-$VERSION
+  rm -rf $CWD/$PKG_SRC $PKG
 fi
index a46ac20a509c240a9223861fb8c45a4fb34bf1ec..8a2d5937a58d64cb1d0d9ddc726e27e314f3e459 100755 (executable)
@@ -25,7 +25,7 @@ SRC_DIR=${SRC_DIR:=$CWD}
 TMP=${TMP:=/tmp}
 PKG=${PKG:=$TMP/package-$PKG_NAME}
 REPOS=${REPOS:=$TMP}
-PREFIX=${PREFIX:=/usr}
+PREFIX=${PREFIX:=/usr/local}
 PKG_SRC=$SRC_NAME-$VERSION
 
 # Set system libraries' path and optmization flags based on $ARCH
@@ -51,8 +51,8 @@ ERROR_TAR=37;       ERROR_MKPKG=38;     ERROR_GPG=39
 ERROR_PATCH=40;     ERROR_VCS=41;       ERROR_MKDIR=42
 
 # Clean up any leftovers of previous builds
-rm -rf $PKG_SRC 2>/dev/null
-rm -rf $PKG 2>/dev/null
+rm -rf $PKG_SRC 2> /dev/null
+rm -rf $PKG 2> /dev/null
 
 # Create directories, if necessary
 mkdir -p $SRC_DIR || exit $ERROR_MKDIR
@@ -124,13 +124,13 @@ if [ -d $PKG/$PREFIX/info ]; then
 fi
 
 # Install documentation and examples
-DOCS="*.TXT examples doc/gtkwave.odt"
+DOCS="*.TXT doc/gtkwave.odt examples"
 mkdir -p $PKG/$PREFIX/doc/$PKG_NAME-$VERSION || exit $ERROR_MKDIR
 cp -a $DOCS $PKG/$PREFIX/doc/$PKG_NAME-$VERSION
 
-# Add slack-desc file
+# Add package description (slack-desc)
 mkdir -p $PKG/install || exit $ERROR_MKDIR
-cat << EOF > $PKG/install/slack-desc
+cat << EODESC > $PKG/install/slack-desc
 # HOW TO EDIT THIS FILE:
 # The "handy ruler" below makes it easier to edit a package description.  Line
 # up the first '|' above the ':' following the base package name, and the '|'
@@ -150,7 +150,7 @@ gtkwave:
 gtkwave:
 gtkwave:
 gtkwave:
-EOF
+EODESC
 
 # Build the package
 cd $PKG
index 4fc6609851c4598cac1220430fc9d3932e6ea1c2..a86de199c50dd2afc239ba6ae77b51fde4b3d00f 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/bash
 #
-# SlackBuild for Icarus Verilog
+# SlackBuild for iverilog (Icarus Verilog)
 # http://www.icarus.com/eda/verilog/
 #
 # Author: Luis ( luis at riseup d0t net )
@@ -25,7 +25,7 @@ SRC_DIR=${SRC_DIR:=$CWD}
 TMP=${TMP:=/tmp}
 PKG=${PKG:=$TMP/package-$PKG_NAME}
 REPOS=${REPOS:=$TMP}
-PREFIX=${PREFIX:=/usr}
+PREFIX=${PREFIX:=/usr/local}
 PKG_SRC=$SRC_NAME-$VERSION
 
 # Set system libraries' path and optmization flags based on $ARCH
@@ -51,8 +51,8 @@ ERROR_TAR=37;       ERROR_MKPKG=38;     ERROR_GPG=39
 ERROR_PATCH=40;     ERROR_VCS=41;       ERROR_MKDIR=42
 
 # Clean up any leftovers of previous builds
-rm -rf $PKG_SRC 2>/dev/null
-rm -rf $PKG 2>/dev/null
+rm -rf $PKG_SRC 2> /dev/null
+rm -rf $PKG 2> /dev/null
 
 # Create directories, if necessary
 mkdir -p $SRC_DIR || exit $ERROR_MKDIR
@@ -113,9 +113,9 @@ mkdir -p $PKG/$PREFIX/doc/$PKG_NAME-$VERSION/vvp || exit $ERROR_MKDIR
 cp -a COPYING INSTALL *.txt examples $PKG/$PREFIX/doc/$PKG_NAME-$VERSION
 cp -a vvp/*.txt vvp/examples $PKG/$PREFIX/doc/$PKG_NAME-$VERSION/vvp
 
-# Add slack-desc file
+# Add package description (slack-desc)
 mkdir -p $PKG/install || exit $ERROR_MKDIR
-cat << EOF > $PKG/install/slack-desc
+cat << EODESC > $PKG/install/slack-desc
 # HOW TO EDIT THIS FILE:
 # The "handy ruler" below makes it easier to edit a package description.  Line
 # up the first '|' above the ':' following the base package name, and the '|'
@@ -135,7 +135,7 @@ iverilog:
 iverilog:
 iverilog:
 iverilog:
-EOF
+EODESC
 
 # Build the package
 cd $PKG
index 7d2c3babbcce5c76a3d5e165f879f551b0db3e6f..d517cd46f4628062a935b7d7237cf5f072857c6d 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/bash
 #
-# SlackBuild for IVI-0.4
+# SlackBuild for IVI (Icarus Verilog Interactive) v0.4-pre-20031121
 # http://sourceforge.net/projects/ivi
 #
 # Author: Luis ( luis at riseup d0t net )
@@ -25,7 +25,7 @@ SRC_DIR=${SRC_DIR:=$CWD}
 TMP=${TMP:=/tmp}
 PKG=${PKG:=$TMP/package-$PKG_NAME}
 REPOS=${REPOS:=$TMP}
-PREFIX=${PREFIX:=/usr}
+PREFIX=${PREFIX:=/usr/local}
 PKG_SRC=$SRC_NAME-0.4-pre-20031121
 
 # Set system libraries' path and optmization flags based on $ARCH
@@ -51,8 +51,8 @@ ERROR_TAR=37;       ERROR_MKPKG=38;     ERROR_GPG=39
 ERROR_PATCH=40;     ERROR_VCS=41;       ERROR_MKDIR=42
 
 # Clean up any leftovers of previous builds
-rm -rf $PKG_SRC 2>/dev/null
-rm -rf $PKG 2>/dev/null
+rm -rf $PKG_SRC 2> /dev/null
+rm -rf $PKG 2> /dev/null
 
 # Create directories, if necessary
 mkdir -p $SRC_DIR || exit $ERROR_MKDIR
@@ -121,9 +121,9 @@ cp -a $DOCS $PKG/$PREFIX/doc/$PKG_NAME-$VERSION
 mv $PKG/$PREFIX/{examples,doc/getting_started,doc/ivi_commands} \
   $PKG/$PREFIX/doc/$PKG_NAME-$VERSION
 
-# Add slack-desc file
+# Add package description (slack-desc)
 mkdir -p $PKG/install || exit $ERROR_MKDIR
-cat << EOF > $PKG/install/slack-desc
+cat << EODESC > $PKG/install/slack-desc
 # HOW TO EDIT THIS FILE:
 # The "handy ruler" below makes it easier to edit a package description.  Line
 # up the first '|' above the ':' following the base package name, and the '|'
@@ -143,7 +143,7 @@ ivi:
 ivi:
 ivi:
 ivi:
-EOF
+EODESC
 
 # Build the package
 cd $PKG