diff options
Diffstat (limited to 'libraries/slv2/slv2.SlackBuild')
-rw-r--r-- | libraries/slv2/slv2.SlackBuild | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/libraries/slv2/slv2.SlackBuild b/libraries/slv2/slv2.SlackBuild index f080151d3e..9b98f2d277 100644 --- a/libraries/slv2/slv2.SlackBuild +++ b/libraries/slv2/slv2.SlackBuild @@ -23,9 +23,9 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=slv2 -VERSION=0.6.2 +VERSION=0.6.6 ARCH=${ARCH:-i486} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} CWD=$(pwd) @@ -35,10 +35,13 @@ 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 @@ -60,13 +63,22 @@ CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./waf configure \ --prefix=/usr \ + --libdir=/usr/lib$LIBDIRSUFFIX \ --mandir=/usr/man \ --htmldir=/usr/doc/$PRGNAM-$VERSION ./waf build ./waf install --destdir=$PKG -rm -rf $PKG/usr/man # No man pages are installed, but the dirs are... +if [ "$LIBDIRSUFFIX" != "" ]; then + sed -i "s,/lib,/lib$LIBDIRSUFFIX," \ + $PKG/usr/lib$LIBDIRSUFFIX/pkgconfig/$PRGNAM.pc +fi + +( cd $PKG/usr/man + find . -type f -exec gzip -9 {} \; + for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done +) mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a AUTHORS ChangeLog COPYING INSTALL README \ @@ -77,4 +89,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} |