wok-next view gtktetris/receipt @ rev 1260

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