diff options
author | Dugan Chen <dugan_c@fastmail.fm> | 2010-05-11 20:00:49 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-11 20:00:49 +0200 |
commit | 293b30c6bd0688330275ac8eae785bb695a9f41b (patch) | |
tree | 0ddd1bed1fa46194f86113f37486a0d3ff8700bf /libraries/libAfterImage/libAfterImage.SlackBuild | |
parent | 08c146e635a504f6554c978864e670033a28aece (diff) |
libraries/libAfterImage: Added to 12.0 repository
Diffstat (limited to 'libraries/libAfterImage/libAfterImage.SlackBuild')
-rw-r--r-- | libraries/libAfterImage/libAfterImage.SlackBuild | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/libraries/libAfterImage/libAfterImage.SlackBuild b/libraries/libAfterImage/libAfterImage.SlackBuild new file mode 100644 index 000000000000..48dad25b9fa3 --- /dev/null +++ b/libraries/libAfterImage/libAfterImage.SlackBuild @@ -0,0 +1,67 @@ +#!/bin/sh + +# Slackware build script for libAfterImage + +# Written by Dugan Chen (dugan_c@fastmail.fm) + +PRGNAM=libAfterImage +VERSION=1.15 +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 + +set -e + +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 \ + --enable-i18n \ + --enable-glx \ + --enable-sharedlibs +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 +) + +( 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 README ChangeLog $PKG/usr/doc/$PRGNAM-$VERSION +mv $PKG/usr/share/$PRGNAM/doc/html/ $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +rm -rf $PKG/usr/share + +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 |