diff options
author | Eric Hameleers <alien@slackware.com> | 2007-11-05 22:55:31 +0000 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2007-11-05 22:55:31 +0000 |
commit | 01863dc9e1ed6c63e32b702395627d8e2bdb0198 (patch) | |
tree | 9c5428a17289ea213c22bfa873b53af73055f0b7 /pingus | |
parent | 4db89bdd86b1d88635bea7080d6dfed1cb0fd283 (diff) | |
download | asb-01863dc9e1ed6c63e32b702395627d8e2bdb0198.tar.gz asb-01863dc9e1ed6c63e32b702395627d8e2bdb0198.tar.xz |
Next try
Diffstat (limited to 'pingus')
-rwxr-xr-x | pingus/build/pingus.SlackBuild | 59 |
1 files changed, 34 insertions, 25 deletions
diff --git a/pingus/build/pingus.SlackBuild b/pingus/build/pingus.SlackBuild index 50e8b88c..d6e1ad31 100755 --- a/pingus/build/pingus.SlackBuild +++ b/pingus/build/pingus.SlackBuild @@ -28,7 +28,7 @@ # For: pingus # Descr: a free Lemmings-like game # URL: http://pingus.seul.org/ -# Needs: +# Needs: boost, scons # Changelog: # 0.7.2-1: 05/Nov/2007 by Eric Hameleers <alien@slackware.com> # * Initial build. @@ -151,26 +151,29 @@ chown -R root:root . chmod -R u+w,go+r-w,a-s . echo Building ... -LDFLAGS="$SLKLDFLAGS" \ -CFLAGS="$SLKCFLAGS" \ -./configure --prefix=/usr \ - --libdir=/usr/lib${LIBDIRSUFFIX} \ - --localstatedir=/var \ - --sysconfdir=/etc \ - --program-prefix="" \ - --program-suffix="" \ - --build=$ARCH-slackware-linux \ - 2>&1 | tee $OUTPUT/configure-${PRGNAM}.log -make 2>&1 | tee $OUTPUT/make-${PRGNAM}.log - -# Install all the needed stuff to the package dir -# Use installwatch if available, to produce a logfile of the installation -# process that is more easily readable: -if $(which installwatch > /dev/null 2>&1); then - installwatch -o $OUTPUT/install-${PRGNAM}.log make DESTDIR=$PKG install -else - make DESTDIR=$PKG install 2>&1 |tee $OUTPUT/install-${PRGNAM}.log -fi +export LDFLAGS="$SLKLDFLAGS" +export CFLAGS="$SLKCFLAGS" +scons 2>&1 | tee $OUTPUT/make-${PRGNAM}.log + +# Install all the needed stuff to the package dir: +./install.sh $PKG/usr + +# Data: +mkdir -p $PKG/usr/share/pingus/data/{demos,metamap,prefabs,themes} +cp data/themes/*.xml $PKG/usr/share/pingus/data/themes/ +cp data/demos/*.* $PKG/usr/share/pingus/data/demos/ +cp data/prefabs/*.xml $PKG/usr/share/pingus/data/prefabs/ +install -m 644 data/metamap/metamap.xml $PKG/usr/share/pingus/data/metamap/ + +# Don't forget the man page: +mkdir -p $PKG/usr/man/man6 +cp doc/pingus.6 $PKG/usr/man/man6 + +# Add a menu entry: +mkdir -p $PKG/usr/share/pixmaps +cp $SRCDIR/pingus.png $PKG/usr/share/pixmaps/ +mkdir -p $PKG/usr/share/applications +cp $SRCDIR/pingus.desktop $PKG/usr/share/applications/ # Add documentation: mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION @@ -178,10 +181,7 @@ cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION || true chmod -R a-w $PKG/usr/doc/$PRGNAM-$VERSION/* # Compress the man page(s): -if [ -d $PKG/usr/man ]; then - find $PKG/usr/man -type f -name "*.?" -exec gzip -9f {} \; - for i in $(find $PKG/usr/man -type l -name "*.?") ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done -fi +find $PKG/usr/man -type f -name "*.?" -exec gzip -9f {} \; # Strip binaries: cd $PKG @@ -192,6 +192,12 @@ cd - # Add a package description: mkdir -p $PKG/install cat $SRCDIR/slack-desc > $PKG/install/slack-desc +if [ -f $SRCDIR/doinst.sh ]; then + cat $SRCDIR/doinst.sh >> $PKG/install/doinst.sh +fi +if [ -f $SRCDIR/slack-required ]; then + cat $SRCDIR/slack-required > $PKG/install/slack-required +fi # Build the package: cd $PKG @@ -200,6 +206,9 @@ cd $OUTPUT md5sum ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}.tgz > ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}.tgz.md5 cd - cat $PKG/install/slack-desc | grep "^${PRGNAM}" > $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}.txt +if [ -f $PKG/install/slack-required ]; then + cat $PKG/install/slack-required > $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}.dep +fi # Clean up the extra stuff: if [ "$P1" = "--cleanup" ]; then |