2003-12-25 14:24:17 +00:00
|
|
|
#!/bin/sh
|
|
|
|
# ScummVM Slackware 9(.1) Package Creation Script
|
2010-05-07 11:18:18 +00:00
|
|
|
# Initial version by Jay Lanagan <roni@parodius.com>
|
|
|
|
# Updated by Robert Kelsen <rkelsen@optusnet.com.au>
|
2003-12-25 14:24:17 +00:00
|
|
|
|
|
|
|
CWD=`pwd`
|
|
|
|
if [ "$TMP" = "" ]; then
|
|
|
|
TMP=/tmp
|
|
|
|
fi
|
|
|
|
PKG=$TMP/package-scummvm
|
|
|
|
|
2012-07-08 19:30:05 +00:00
|
|
|
VERSION=1.6.0git
|
2003-12-25 14:24:17 +00:00
|
|
|
ARCH=i486
|
|
|
|
BUILD=1
|
|
|
|
|
|
|
|
if [ ! -d $TMP ]; then
|
2008-01-27 19:47:41 +00:00
|
|
|
mkdir -p $TMP
|
2003-12-25 14:24:17 +00:00
|
|
|
fi
|
|
|
|
if [ ! -d $PKG ]; then
|
2008-01-27 19:47:41 +00:00
|
|
|
mkdir -p $PKG
|
2003-12-25 14:24:17 +00:00
|
|
|
fi
|
|
|
|
|
2010-05-07 11:18:18 +00:00
|
|
|
#cd $TMP
|
|
|
|
tar xvf scummvm-$VERSION.tar.bz2
|
|
|
|
cd scummvm-$VERSION
|
|
|
|
./configure --prefix=/usr --bindir=/usr/games
|
2003-12-25 14:24:17 +00:00
|
|
|
make
|
|
|
|
strip scummvm
|
2010-05-07 11:18:18 +00:00
|
|
|
make install DESTDIR=$PKG
|
2003-12-25 14:24:17 +00:00
|
|
|
mkdir -p $PKG/install
|
|
|
|
cat $CWD/slack-desc > $PKG/install/slack-desc
|
|
|
|
cd $PKG
|
2010-05-07 11:18:18 +00:00
|
|
|
chown -R root.root .
|
2003-12-25 14:24:17 +00:00
|
|
|
makepkg -l y -c n $TMP/scummvm-$VERSION-$ARCH-$BUILD.tgz
|
|
|
|
|
|
|
|
if [ "$1" = "--cleanup" ]; then
|
|
|
|
rm -rf $TMP/scummvm-$VERSION
|
|
|
|
rm -rf $PKG
|
|
|
|
fi
|