wok-next view gtktetris/receipt @ rev 16567
Up: slitaz-boot-scripts + slitaz-tools (urgent bug fix)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Thu May 01 22:17:02 2014 +0200 (2014-05-01) |
parents | 8b79c3ee7ac2 |
children | a3c581bf52b8 |
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 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://sourceforge.net/projects/gtktetris/"
11 WGET_URL="http://mirror.slitaz.org/sources/packages/g/$TARBALL"
13 DEPENDS="gtk+ xorg-libXdamage"
14 BUILD_DEPENDS="gtk+-dev"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
20 sed -i s:'BIN_PATH = /usr/local/bin':'BIN_PATH = /usr/games:' Makefile
21 sed -i s:'HIGHSCORE_PATH = /usr/local/games/gtktetris':'HIGHSCORE_PATH=/var/games/gtktetris:' Makefile
22 make
23 }
25 # Rules to gen a SliTaz package suitable for Tazpkg.
26 genpkg_rules()
27 {
28 mkdir -p $fs/usr/games $fs/var/games/gtktetris
29 cp -a $src/gtktetris $fs/usr/games
30 touch $fs/var/games/gtktetris/highscore.dat
31 chmod 666 $fs/var/games/gtktetris/highscore.dat
32 }