diff options
Diffstat (limited to 'development/latrace/latrace.SlackBuild')
-rw-r--r-- | development/latrace/latrace.SlackBuild | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/development/latrace/latrace.SlackBuild b/development/latrace/latrace.SlackBuild index 1c52643b64..7736581029 100644 --- a/development/latrace/latrace.SlackBuild +++ b/development/latrace/latrace.SlackBuild @@ -7,8 +7,10 @@ # Granted WTFPLv2, as published by Sam Hocevar dec'04. # For details see http://sam.zoy.org/wtfpl/COPYING +# Updated by Peter Wang <novalazy@gmail.com> + PRGNAM=latrace -VERSION=${VERSION:-0.5.3} +VERSION=${VERSION:-0.5.7} ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -20,11 +22,14 @@ OUTPUT=${OUTPUT:-/tmp} if [ "$ARCH" = "i486" ]; then SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" -fi + LIBDIRSUFFIX="64" +fi set -e # Exit on most errors @@ -45,10 +50,12 @@ CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ + --libdir=/usr/lib$LIBDIRSUFFIX \ --sysconfdir=/etc \ --localstatedir=/var \ --mandir=/usr/man \ - --docdir=/usr/doc/$PRGNAM-$VERSION + --docdir=/usr/doc/$PRGNAM-$VERSION \ + --build=$ARCH-slackware-linux make make install ROOTDIR=$PKG @@ -58,7 +65,7 @@ make install ROOTDIR=$PKG mv $PKG/etc/latrace.conf $PKG/etc/latrace.conf.new find $PKG -type f | xargs file | grep -e "executable" -e "shared object" \ - | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null + | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true ( cd $PKG/usr/man || exit 1 find . -type f -exec gzip -9 {} \; @@ -66,7 +73,7 @@ find $PKG -type f | xargs file | grep -e "executable" -e "shared object" \ ) mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a README TODO ChangeLog ReleaseNotes $PKG/usr/doc/$PRGNAM-$VERSION +cp -a COPYING README TODO ChangeLog ReleaseNotes $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install @@ -74,4 +81,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} |