diff options
Diffstat (limited to 'libraries/libetpan/libetpan.SlackBuild')
-rw-r--r-- | libraries/libetpan/libetpan.SlackBuild | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/libraries/libetpan/libetpan.SlackBuild b/libraries/libetpan/libetpan.SlackBuild index 6f363436b2..8af5b94373 100644 --- a/libraries/libetpan/libetpan.SlackBuild +++ b/libraries/libetpan/libetpan.SlackBuild @@ -2,13 +2,13 @@ # Slackware build script for libetpan # Written by Erik Hanson erik@slackbuilds.org -# Updated to 0.52 by Timothy Pollard <grainman.timp@gmail.com> PRGNAM=libetpan -VERSION=0.52 +VERSION=0.57 ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} + CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM @@ -20,11 +20,13 @@ elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" fi +set -eu + rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT -cd $TMP || exit 1 +cd $TMP rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || exit 1 +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz cd $PRGNAM-$VERSION chown -R root:root . chmod -R u+w,go+r-w,a-s . @@ -33,19 +35,17 @@ CFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ --sysconfdir=/etc \ - --localstatedir=/var \ - || exit 1 - -make || exit 1 -make install DESTDIR=$PKG || exit 1 + --localstatedir=/var/lib \ + --disable-static \ + --build=$ARCH-slackware-linux -( cd $PKG - find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null - find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null -) +make +make install-strip DESTDIR=$PKG mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a COPYRIGHT ChangeLog INSTALL NEWS TODO doc/ $PKG/usr/doc/$PRGNAM-$VERSION +cp -a AUTHORS COPYRIGHT ChangeLog NEWS README doc/ \ + $PKG/usr/doc/$PRGNAM-$VERSION +rm -f $PKG/usr/doc/$PRGNAM-$VERSION/doc/Makefile* cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |