# HG changeset patch # User Pascal Bellard # Date 1419512629 -3600 # Node ID 8b7008c000ebcdee237feece4e5a5a0169b3baff # Parent 6bc6fe824d966758866cf06776277bc7806b404b Add xtron diff -r 6bc6fe824d96 -r 8b7008c000eb xtron/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/xtron/receipt Thu Dec 25 14:03:49 2014 +0100 @@ -0,0 +1,43 @@ +# SliTaz package receipt. + +PACKAGE="xtron" +VERSION="1.1a" +CATEGORY="games" +SHORT_DESC="Simple X game based on light-cycle race from the movie TRON." +MAINTAINER="pascal.bellard@slitaz.org" +LICENSE="GPL" +TARBALL="$PACKAGE-$VERSION.tgz" +WEB_SITE="ftp://ibiblio.org/pub/Linux/games/arcade/xtron-1.1a.lsm" +WGET_URL="$(dirname $WEB_SITE)/$TARBALL" + +DEPENDS="xorg-libXpm xorg-libXau libxcb" +BUILD_DEPENDS="xorg-dev" + +# Rules to configure and make the package. +compile_rules() +{ + sed -i 's|/usr/X386|/usr|' Makefile + sed -i 's|./pixmaps/|/usr/share/games/xtron/|' xtronrc + sed -i 's|usr/X11/lib|etc|' resource.c xtronrc + make +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/games $fs/usr/share/games $fs/etc/X11/app-defaults + mkdir -p $fs/usr/share/applications + cp -a $src/xtron $fs/usr/games + cp -a $src/pixmaps $fs/usr/share/games/xtron + cp -a $src/xtronrc $fs/etc/X11/app-defaults/ + cat > $fs/usr/share/applications/xtron.desktop <