#!/bin/sh CWD=`pwd` PKG=/tmp/package-gnome-games rm -rf $PKG mkdir -p $PKG/var/lib/scrollkeeper VERSION=1.4.0.4 ARCH=i386 BUILD=2 cd /tmp tar xjvf $CWD/gnome-games-$VERSION.tar.bz2 cd gnome-games-$VERSION chown -R root.root . CFLAGS="-O2 -march=i386 -mcpu=i686" \ CXXFLAGS="-O2 -march=i386 -mcpu=i686" \ ./configure --prefix=/usr \ --with-ncurses=/usr \ --localstatedir=/var/lib \ i386-slackware-linux make make install DESTDIR=$PKG mkdir -p $PKG/usr/doc/gnome-games-$VERSION cp -a ABOUT-NLS AUTHORS COPYING COPYING-DOCS ChangeLog INSTALL NEWS README \ $PKG/usr/doc/gnome-games-$VERSION chmod 644 $PKG/usr/doc/gnome-games-$VERSION/* mkdir -p $PKG/install cat << EOF > $PKG/install/doinst.sh if [ -d var/lib/games/tmp ]; then ( cd var/lib/games/tmp for file in * ; do if [ ! -r ../\$file ]; then mv \$file .. fi done ) rm -rf var/lib/games/tmp fi EOF # Fix directory perms: chown root:games $PKG/var/lib/games chmod 2775 $PKG/var/lib/games cat $CWD/../scrollkeeper/doinst.sh >> $PKG/install/doinst.sh cat $CWD/slack-desc > $PKG/install/slack-desc ( cd $PKG/var/lib/games mkdir tmp mv --verbose *.* tmp ) ( cd $PKG/var/lib/scrollkeeper && rm -rf * ) ( cd $PKG/usr/bin chown root.bin . strip * chown root:bin ctali freecell gataxx gnect sol ) find $PKG/usr/lib -name "*.so.*" | xargs strip --strip-unneeded # I don't understand what's up with this, but... ( cd $PKG && rm -rf tmp ) cd $PKG makepkg -l y -c n ../gnome-games-$VERSION-$ARCH-$BUILD.tgz