wok annotate xtron/receipt @ rev 18029

Add original Tango icon set, and its SliTaz subset.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu May 07 16:21:55 2015 +0300 (2015-05-07)
parents
children 318701ea94ca
rev   line source
pascal@17466 1 # SliTaz package receipt.
pascal@17466 2
pascal@17466 3 PACKAGE="xtron"
pascal@17466 4 VERSION="1.1a"
pascal@17466 5 CATEGORY="games"
pascal@17466 6 SHORT_DESC="Simple X game based on light-cycle race from the movie TRON."
pascal@17466 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@17466 8 LICENSE="GPL"
pascal@17466 9 TARBALL="$PACKAGE-$VERSION.tgz"
pascal@17466 10 WEB_SITE="ftp://ibiblio.org/pub/Linux/games/arcade/xtron-1.1a.lsm"
pascal@17466 11 WGET_URL="$(dirname $WEB_SITE)/$TARBALL"
pascal@17466 12
pascal@17466 13 DEPENDS="xorg-libXpm xorg-libXau libxcb"
pascal@17466 14 BUILD_DEPENDS="xorg-dev"
pascal@17466 15
pascal@17466 16 # Rules to configure and make the package.
pascal@17466 17 compile_rules()
pascal@17466 18 {
pascal@17466 19 sed -i 's|/usr/X386|/usr|' Makefile
pascal@17466 20 sed -i 's|./pixmaps/|/usr/share/games/xtron/|' xtronrc
pascal@17466 21 sed -i 's|usr/X11/lib|etc|' resource.c xtronrc
pascal@17466 22 make
pascal@17466 23 }
pascal@17466 24
pascal@17466 25 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@17466 26 genpkg_rules()
pascal@17466 27 {
pascal@17466 28 mkdir -p $fs/usr/games $fs/usr/share/games $fs/etc/X11/app-defaults
pascal@17466 29 mkdir -p $fs/usr/share/applications
pascal@17466 30 cp -a $src/xtron $fs/usr/games
pascal@17466 31 cp -a $src/pixmaps $fs/usr/share/games/xtron
pascal@17466 32 cp -a $src/xtronrc $fs/etc/X11/app-defaults/
pascal@17466 33 cat > $fs/usr/share/applications/xtron.desktop <<EOT
pascal@17466 34 [Desktop Entry]
pascal@17466 35 Type=Application
pascal@17466 36 Encoding=UTF-8
pascal@17466 37 Name=xtron
pascal@17466 38 Exec=xtron
pascal@17466 39 Icon=/usr/share/games/xtron/Xtron_icon.xpm
pascal@17466 40 Terminal=false
pascal@17466 41 Categories=Application;Game;
pascal@17466 42 EOT
pascal@17466 43 }