wok-6.x annotate gtktetris/receipt @ rev 1036
Add gtktetris (tetris games for less than 40 Kb)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Fri Jul 11 15:59:31 2008 +0200 (2008-07-11) |
parents | |
children | 8b79c3ee7ac2 |
rev | line source |
---|---|
pankso@1036 | 1 # SliTaz package receipt |
pankso@1036 | 2 |
pankso@1036 | 3 PACKAGE="gtktetris" |
pankso@1036 | 4 VERSION="0.6.2" |
pankso@1036 | 5 CATEGORY="games" |
pankso@1036 | 6 SHORT_DESC="Simple tetris game using GTK." |
pankso@1036 | 7 MAINTAINER="pankso@slitaz.org" |
pankso@1036 | 8 DEPENDS="gtk+" |
pankso@1036 | 9 BUILD_DEPENDS="gtk+-dev" |
pankso@1036 | 10 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pankso@1036 | 11 WEB_SITE="http://sourceforge.net/projects/gtktetris/" |
pankso@1036 | 12 WGET_URL="http://mirror.slitaz.org/sources/packages/g/$TARBALL" |
pankso@1036 | 13 # Rules to configure and make the package. |
pankso@1036 | 14 compile_rules() |
pankso@1036 | 15 { |
pankso@1036 | 16 cd $src |
pankso@1036 | 17 sed -i s:'BIN_PATH = /usr/local/bin':'BIN_PATH = /usr/games:' Makefile |
pankso@1036 | 18 sed -i s:'HIGHSCORE_PATH = /usr/local/games/gtktetris':'HIGHSCORE_PATH=/var/games/gtktetris:' Makefile |
pankso@1036 | 19 make |
pankso@1036 | 20 } |
pankso@1036 | 21 |
pankso@1036 | 22 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@1036 | 23 genpkg_rules() |
pankso@1036 | 24 { |
pankso@1036 | 25 mkdir -p $fs/usr/games $fs/var/games/gtktetris |
pankso@1036 | 26 cp -a $src/gtktetris $fs/usr/games |
pankso@1036 | 27 touch $fs/var/games/gtktetris/highscore.dat |
pankso@1036 | 28 chmod 666 $fs/var/games/gtktetris/highscore.dat |
pankso@1036 | 29 } |
pankso@1036 | 30 |