aboutsummaryrefslogtreecommitdiff
path: root/libraries/libmaa/libmaa.SlackBuild
diff options
context:
space:
mode:
authorsercari <sercari@esdebian.org>2010-05-13 00:58:52 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-13 00:58:52 +0200
commit0ac6d02f6694a173722b0d05dcb331ea863b41b6 (patch)
treebfc92c086572edc3781581c6d5f351e4547a3b9e /libraries/libmaa/libmaa.SlackBuild
parent778d9b10eefdcee198e995781a6753a400d5f05d (diff)
libraries/libmaa: Added to 13.0 repository
Diffstat (limited to 'libraries/libmaa/libmaa.SlackBuild')
-rw-r--r--libraries/libmaa/libmaa.SlackBuild64
1 files changed, 64 insertions, 0 deletions
diff --git a/libraries/libmaa/libmaa.SlackBuild b/libraries/libmaa/libmaa.SlackBuild
new file mode 100644
index 000000000000..215a7bcb1c0b
--- /dev/null
+++ b/libraries/libmaa/libmaa.SlackBuild
@@ -0,0 +1,64 @@
+#!/bin/sh
+
+# Slackware build script for libmaa
+# Written by sercari <sercari@esdebian.org>
+
+PRGNAM=libmaa
+VERSION=1.1.1
+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.gz
+cd $PRGNAM-$VERSION
+chown -R root:root .
+chmod -R u+w,go+r-w,a-s .
+
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
+./configure \
+ --prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
+ --build=$ARCH-slackware-linux
+
+make
+make install 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 \
+ COPYING* ChangeLog 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}