# SliTaz package receipt PACKAGE="xpat2" VERSION="1.07" CATEGORY="games" SHORT_DESC="Soltaire games for X." MAINTAINER="b1+slitaz@nagel.org" WEB_SITE="http://manpages.ubuntu.com/manpages/intrepid/man6/xpat2.html" DEPENDS="xorg-libX11 xorg-libXt xorg-libXaw" TARBALL="$PACKAGE-$VERSION-src.tar.gz" WGET_URL="http://www.ibiblio.org/pub/Linux/games/solitaires/$TARBALL" # Rules to configure and make the package. compile_rules() { cd $src for i in xpat2.patch layout.patch ; do [ -f done.$i ] && continue patch -p1 < $stuff/$i touch done.$i done cd src cp $stuff/Makefile . make && make DESTDIR=../_pkg install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/var/games/xpat2 cp -a $_pkg/usr $fs mkdir -p $fs/usr/share/X11/app-defaults/ cp -a $stuff/XPat.ad $fs/usr/share/X11/app-defaults/XPat touch $fs/var/games/xpat2/xpat.log chmod 666 $fs/var/games/xpat2/xpat.log }