diff options
author | Peter Wang <novalazy@gmail.com> | 2010-05-13 00:24:54 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-13 00:24:54 +0200 |
commit | d89b243f4d0e5dc205c6061e8f27567c403c75d1 (patch) | |
tree | b9b54899cb69aa4f1d672eb3d28bda73c518da5d /development/latrace/latrace.SlackBuild | |
parent | 86abfe99362dfecb5e1274ba5a4944f33468e223 (diff) |
development/latrace: Updated for version 0.5.7
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 1c52643b64a3e..773658102958e 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} |