diff options
author | Max Horn | 2003-12-25 14:24:17 +0000 |
---|---|---|
committer | Max Horn | 2003-12-25 14:24:17 +0000 |
commit | 491f319dc77eab925910860b426bada2e77c0ebd (patch) | |
tree | 46176921778be80ef51cc2dbad9be3b9c65c5a34 /dists/slackware/scummvm.SlackBuild | |
parent | e274286952c329180b6de5b8b04d495101bc3116 (diff) | |
download | scummvm-rg350-491f319dc77eab925910860b426bada2e77c0ebd.tar.gz scummvm-rg350-491f319dc77eab925910860b426bada2e77c0ebd.tar.bz2 scummvm-rg350-491f319dc77eab925910860b426bada2e77c0ebd.zip |
Patch #863997: Build Script for Slackware
svn-id: r11910
Diffstat (limited to 'dists/slackware/scummvm.SlackBuild')
-rwxr-xr-x | dists/slackware/scummvm.SlackBuild | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/dists/slackware/scummvm.SlackBuild b/dists/slackware/scummvm.SlackBuild new file mode 100755 index 0000000000..5ea14f7f98 --- /dev/null +++ b/dists/slackware/scummvm.SlackBuild @@ -0,0 +1,53 @@ +#!/bin/sh +# ScummVM Slackware 9(.1) Package Creation Script +# by Jay Lanagan - roni@parodius.com + +CWD=`pwd` +if [ "$TMP" = "" ]; then + TMP=/tmp +fi +PKG=$TMP/package-scummvm + +#VERSION=0.5.1 +VERSION=20031221 +ARCH=i486 +BUILD=1 + +if [ ! -d $TMP ]; then + mkdir -p $TMP +fi +if [ ! -d $PKG ]; then + mkdir -p $PKG +fi + +cd $TMP +# tar xzvf scummvm-$VERSION.tgz +tar xzvf scummvm-$VERSION.tar.gz +# cd scummvm-$VERSION +cd scummvm +chown -R root.root . +CXXFLAGS="-O2 -march=i486 -mcpu=i686" \ +./configure +make +strip scummvm +chmod 755 scummvm +mkdir -p $PKG/usr/bin +cp scummvm $PKG/usr/bin +chown root:bin $PKG/usr/bin/scummvm +gzip -9 scummvm.6 +mkdir -p $PKG/usr/man/man6 +cp scummvm.6.gz $PKG/usr/man/man6 +mkdir -p $PKG/usr/doc/scummvm-$VERSION +cp -a COPYING ChangeLog NEWS README TODO \ + $PKG/usr/doc/scummvm-$VERSION +chmod 644 $PKG/usr/doc/scummvm-$VERSION +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +makepkg -l y -c n $TMP/scummvm-$VERSION-$ARCH-$BUILD.tgz + +if [ "$1" = "--cleanup" ]; then + rm -rf $TMP/scummvm-$VERSION + rm -rf $PKG +fi |