diff options
author | B. Watson <yalhcru@gmail.com> | 2010-05-13 00:58:17 +0200 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-05-13 00:58:17 +0200 |
commit | a84b5f8e51bbe403599852fcc7540346b688fd04 (patch) | |
tree | 1364a16e4b72b1905414cc8c6687d33bf6d16ad0 /graphics/gbdfed/gbdfed.SlackBuild | |
parent | 1b35ee705d970f7f65a8c67a1bbede55fc781546 (diff) | |
download | slackbuilds-a84b5f8e51bbe403599852fcc7540346b688fd04.tar.gz |
graphics/gbdfed: Added to 13.0 repository
Diffstat (limited to 'graphics/gbdfed/gbdfed.SlackBuild')
-rw-r--r-- | graphics/gbdfed/gbdfed.SlackBuild | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/graphics/gbdfed/gbdfed.SlackBuild b/graphics/gbdfed/gbdfed.SlackBuild new file mode 100644 index 0000000000..083e22772d --- /dev/null +++ b/graphics/gbdfed/gbdfed.SlackBuild @@ -0,0 +1,67 @@ +#!/bin/sh + +# Slackware build script for gbdfed + +# Written by B. Watson (yalhcru@gmail.com) + +# Tested on 13.0rc1 64-bit (LIBDIRSUFFIX not needed) + +PRGNAM=gbdfed +VERSION=${VERSION:-1.5} +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.tgz +cd $PRGNAM-$VERSION +chown -R root:root . +chmod -R a-s,u+w,go+r-w . + +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --mandir=/usr/man + +make +strip $PRGNAM +make install DESTDIR=$PKG +gzip $PKG/usr/man/man1/$PRGNAM.1 + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a NEWS README $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/usr/share/applications +cat $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop + +mkdir -p $PKG/usr/share/pixmaps +cat $CWD/${PRGNAM}48x48.png > $PKG/usr/share/pixmaps/$PRGNAM.png + +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.${PKGTYPE:-tgz} |