slackbuilds_ponce/libraries/guichan/guichan.SlackBuild

53 lines
1.1 KiB
Text
Raw Normal View History

2010-05-11 14:56:15 +02:00
#!/bin/sh
# Slackware build script for guichan
# Written by Erik Hanson erik@slackbuilds.org
set -eu
2010-05-11 14:56:15 +02:00
PRGNAM=guichan
VERSION=0.8.1
2010-05-11 14:56:15 +02:00
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
CWD=$(pwd)
2010-05-11 14:56:15 +02:00
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"
fi
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xzvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
2010-05-11 14:56:15 +02:00
chown -R root:root .
chmod -R a-s,u+w,go+r-w .
CFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var
2010-05-11 14:56:15 +02:00
make
make install-strip DESTDIR=$PKG
2010-05-11 14:56:15 +02:00
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -ar AUTHORS COPYING ChangeLog INSTALL NEWS README TODO \
2010-05-11 14:56:15 +02:00
$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