diff options
author | Erik Hanson <erik@slackbuilds.org> | 2010-05-12 23:28:41 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-12 23:28:41 +0200 |
commit | b99ff3b8bca48e9345bd18d187801e71526762f3 (patch) | |
tree | 83c99b6c3126ee4c3ca1d8656012a6127b08536e /development/gob2/gob2.SlackBuild | |
parent | 862e75d5898516d3475187016cfb213eb0e7cc3c (diff) | |
download | slackbuilds-b99ff3b8bca48e9345bd18d187801e71526762f3.tar.gz |
development/gob2: Added to 12.2 repository
Diffstat (limited to 'development/gob2/gob2.SlackBuild')
-rw-r--r-- | development/gob2/gob2.SlackBuild | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/development/gob2/gob2.SlackBuild b/development/gob2/gob2.SlackBuild new file mode 100644 index 0000000000..77f805fb93 --- /dev/null +++ b/development/gob2/gob2.SlackBuild @@ -0,0 +1,66 @@ +#!/bin/sh + +# Slackware build script for GOB-2 +# Written by Erik Hanson erik@slackbuilds.org + +PRGNAM=gob2 +VERSION=2.0.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" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +fi + +set -eu + +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/lib \ + --mandir=/usr/man \ + --disable-static \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ + --build=$ARCH-slackware-linux + +make +make install-strip DESTDIR=$PKG + +( cd $PKG/usr/man || exit 1 + 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 COPYING.generated-code 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 + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz |