summaryrefslogtreecommitdiff
path: root/misc/kasumi/kasumi.SlackBuild
diff options
context:
space:
mode:
authorFrancisco Dalla Rosa Soares <dallarosa@gmail.com>2010-05-12 23:31:40 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-12 23:31:40 +0200
commit5e7d4bd433113ccb5465436e2ae394ddaa405bd5 (patch)
treeeee152ccba4936332907a160a02ab2c20c063353 /misc/kasumi/kasumi.SlackBuild
parent7552e9511b582fbb5621804eb423f7a4cf307f48 (diff)
downloadslackbuilds-5e7d4bd433113ccb5465436e2ae394ddaa405bd5.tar.gz
misc/kasumi: Added to 12.2 repository
Diffstat (limited to 'misc/kasumi/kasumi.SlackBuild')
-rw-r--r--misc/kasumi/kasumi.SlackBuild67
1 files changed, 67 insertions, 0 deletions
diff --git a/misc/kasumi/kasumi.SlackBuild b/misc/kasumi/kasumi.SlackBuild
new file mode 100644
index 0000000000..a52bd70eba
--- /dev/null
+++ b/misc/kasumi/kasumi.SlackBuild
@@ -0,0 +1,67 @@
+#!/bin/sh
+
+#Slackbuild script for Kasumi
+#Written by Francisco Dalla Rosa Soares (dallarosa at gmail dot com) revision date 2009/06/12
+
+PRGNAM=kasumi
+VERSION=2.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"
+ 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
+rm -rf $TMP/$PRGNAM-$VERSION
+cd $TMP
+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 \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
+ --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 \
+ ABOUT-NLS AUTHORS ChangeLog COPYING INSTALL NEWS README \
+ $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+find $PKG/usr/doc/$PRGNAM-$VERSION -type f -exec chmod 644 {} \;
+
+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