#!/bin/sh CWD=`pwd` PKG=/tmp/package-gnome-games rm -rf $PKG mkdir -p $PKG/var/lib/scrollkeeper VERSION=1.4.0.4 ARCH=i586 BUILD=1 cd /tmp tar xyvf $CWD/gnome-games-$VERSION.tar.bz2 cd gnome-games-$VERSION chown -R root.root . CFLAGS="-O2 -fomit-frame-pointer -march=$ARCH" \ CXXFLAGS="-O2 -fomit-frame-pointer -march=$ARCH" \ ./configure --prefix=/opt/gnome \ --sysconfdir=/etc/opt/gnome \ --with-ncurses=/usr \ --localstatedir=/var/lib || exit 1 make -j2 || exit 1 make install DESTDIR=$PKG mkdir -p $PKG/usr/doc/gnome-games-$VERSION cp -a AUTHORS COPYING COPYING-DOCS HACKING MAINTAINERS \ $PKG/usr/doc/gnome-games-$VERSION chmod 644 $PKG/usr/doc/gnome-games-$VERSION/* mkdir -p $PKG/install # Fix directory perms: chown root:games $PKG/var/lib/games chmod 2775 $PKG/var/lib/games cat $CWD/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/opt/gnome/bin chown root.bin . strip * chown root:bin ctali freecell gataxx gnect sol ) ( cd $PKG ; mkdir usr/share ; mv opt/gnome/share/locale usr/share ) find $PKG/opt/gnome/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 ../gnogames-$VERSION-$ARCH-$BUILD.tgz