diff options
author | Terry Laundos <terry@s1solucoes.com.br> | 2010-05-11 22:54:06 +0200 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-05-11 22:54:06 +0200 |
commit | 9ad76ec70e853dd7d903f2e46982342dd969e0ee (patch) | |
tree | 04b4212e84c5ee53ceb6dd77589c7ee0cf61c930 /libraries/libfprint/libfprint.SlackBuild | |
parent | 462de9b508542d5069211314532b588eb28be0d4 (diff) |
libraries/libfprint: Added to 12.1 repository
Diffstat (limited to 'libraries/libfprint/libfprint.SlackBuild')
-rw-r--r-- | libraries/libfprint/libfprint.SlackBuild | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/libraries/libfprint/libfprint.SlackBuild b/libraries/libfprint/libfprint.SlackBuild new file mode 100644 index 0000000000000..b2b56ebafa8bd --- /dev/null +++ b/libraries/libfprint/libfprint.SlackBuild @@ -0,0 +1,55 @@ +#!/bin/sh + +# Slackware build script for libfprint + +# Written by Terry Laundos <terry.laundos@s1solucoes.com.br> + +set -e + +PRGNAM=libfprint +VERSION=0.0.6 +ARCH=${ARCH:-i486} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" +fi + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar -xjvf $CWD/$PRGNAM-$VERSION.tar.bz2 +cd $PRGNAM-$VERSION +chown -R root:root . +chmod -R u+w,go+r-w,a-s . + +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --mandir=/usr/man \ + --disable-static \ + --build=$ARCH-slackware-linux +make +make install DESTDIR=$PKG + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a AUTHORS ChangeLog COPYING HACKING INSTALL NEWS README THANKS INSTALL TODO doc/ \ + examples/ $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +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 |