aboutsummaryrefslogtreecommitdiff
path: root/audio/gnomad2/gnomad2.SlackBuild
diff options
context:
space:
mode:
authorRon F. DeMoss <rfdemoss{at}gmail{dot}com>2010-05-12 23:27:52 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-12 23:27:52 +0200
commit3de45161220ad8d69963e4df7b61930bc4d7091b (patch)
tree1b91f5a7ac50f94d2c957880adcdaf4fd0b525d8 /audio/gnomad2/gnomad2.SlackBuild
parent724c8478620dede68130e1a3ab6ed759d3da7d49 (diff)
audio/gnomad2: Added to 12.2 repository
Diffstat (limited to 'audio/gnomad2/gnomad2.SlackBuild')
-rw-r--r--audio/gnomad2/gnomad2.SlackBuild63
1 files changed, 63 insertions, 0 deletions
diff --git a/audio/gnomad2/gnomad2.SlackBuild b/audio/gnomad2/gnomad2.SlackBuild
new file mode 100644
index 0000000000000..43ab93e4658a6
--- /dev/null
+++ b/audio/gnomad2/gnomad2.SlackBuild
@@ -0,0 +1,63 @@
+#!/bin/sh
+
+# Slackware build script for Gnomad2
+# Build script by Ron F. DeMoss, 2009-01-23
+
+PRGNAM=gnomad2
+VERSION=${VERSION:-2.9.4}
+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"
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+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" \
+./configure \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --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 ChangeLog INSTALL NEWS README TODO \
+ $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
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz