diff options
author | Elvio Basello (HelLViS69) <hellvis69 at slackware dot it> | 2010-05-13 00:59:42 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-13 00:59:42 +0200 |
commit | 74948c43587b79e1b0b48df3d593e99609b09f2e (patch) | |
tree | eb34b21d4bf93a49b277a554124c80d82f9d4b87 /multimedia/iat/iat.SlackBuild | |
parent | 70a923d0526987af5bc8778ae75b6ae5dacd77e5 (diff) | |
download | slackbuilds-74948c43587b79e1b0b48df3d593e99609b09f2e.tar.gz |
multimedia/iat: Added to 13.0 repository
Diffstat (limited to 'multimedia/iat/iat.SlackBuild')
-rw-r--r-- | multimedia/iat/iat.SlackBuild | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/multimedia/iat/iat.SlackBuild b/multimedia/iat/iat.SlackBuild new file mode 100644 index 0000000000..b7a3a53cae --- /dev/null +++ b/multimedia/iat/iat.SlackBuild @@ -0,0 +1,67 @@ +#!/bin/sh + +# Slackware build script for iat +# Written by Elvio Basello <hellvis69 at slackware dot it> + +PRGNAM=iat +VERSION=0.1.7 +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" + 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 xvf $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 \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ + --mandir=/usr/man \ + --build=$ARCH-slackware-linux + +make +make install-strip DESTDIR=$PKG + +( 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 COPYING INSTALL NEWS README \ + $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.${PKGTYPE:-tgz} |