diff options
author | Kyle Guinn <elyk03@gmail.com> | 2010-05-13 00:40:29 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-13 00:40:29 +0200 |
commit | 7f62b352aab3dcb85c2eb14a0795129f7e485163 (patch) | |
tree | 600ecba230116639b5428d6c739070ceb42d0324 /system/gpsbabel/gpsbabel.SlackBuild | |
parent | 81b725457697bfd2d384253d2a5061812c5b5709 (diff) | |
download | slackbuilds-7f62b352aab3dcb85c2eb14a0795129f7e485163.tar.gz |
system/gpsbabel: Updated for version 1.3.3
Diffstat (limited to 'system/gpsbabel/gpsbabel.SlackBuild')
-rw-r--r-- | system/gpsbabel/gpsbabel.SlackBuild | 24 |
1 files changed, 17 insertions, 7 deletions
diff --git a/system/gpsbabel/gpsbabel.SlackBuild b/system/gpsbabel/gpsbabel.SlackBuild index 43c4024d3d..2e883d9940 100644 --- a/system/gpsbabel/gpsbabel.SlackBuild +++ b/system/gpsbabel/gpsbabel.SlackBuild @@ -3,13 +3,12 @@ # Slackware build script for gpsbabel # Written by Kyle Guinn <elyk03@gmail.com> -set -e - PRGNAM=gpsbabel VERSION=1.3.3 ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} + CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM @@ -17,15 +16,22 @@ 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" + LIBDIRSUFFIX="64" fi +set -e + rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar -xzvf $CWD/$PRGNAM-$VERSION.tar.gz +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz cd $PRGNAM-$VERSION chown -R root:root . chmod -R u+w,go+r-w,a-s . @@ -33,17 +39,21 @@ chmod -R u+w,go+r-w,a-s . CFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ --sysconfdir=/etc \ --localstatedir=/var \ --with-zlib=system \ - --without-doc + --without-doc \ + --build=$ARCH-slackware-linux make make install DESTDIR=$PKG ( 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 + 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 ) mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION @@ -54,4 +64,4 @@ 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.tgz +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} |