wok view gtktetris/receipt @ rev 24432
updated libnetfilter_conntrack and libnetfilter_conntrack-dev (1.0.7 -> 1.0.8)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Feb 12 17:34:21 2022 +0100 (2022-02-12) |
parents | 86790a278e70 |
children | ad0bc3efbf37 |
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="https://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 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - https://sourceforge.net/projects/gtktetris/files/gtktetris/ 2>/dev/null | \
20 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
21 sed '/scope="row/!d;s|.*/gtktetris/gtktetris-||;s|/.*||;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 cd $src
28 sed -i s:'BIN_PATH = /usr/local/bin':'BIN_PATH = /usr/games:' Makefile
29 sed -i s:'HIGHSCORE_PATH = /usr/local/games/gtktetris':'HIGHSCORE_PATH=/var/games/gtktetris:' Makefile
30 make
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/usr/games $fs/var/games/gtktetris
37 cp -a $src/gtktetris $fs/usr/games
38 touch $fs/var/games/gtktetris/highscore.dat
39 chmod 666 $fs/var/games/gtktetris/highscore.dat
40 }