wok-current annotate gtktetris/receipt @ rev 25411

updated winetricks (20200412 -> 20220411)
author Hans-G?nter Theisgen
date Thu Aug 04 07:24:24 2022 +0100 (2022-08-04)
parents 86790a278e70
children ad0bc3efbf37
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"
pascal@15600 8 LICENSE="GPL2"
pankso@1036 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@20421 10 WEB_SITE="https://sourceforge.net/projects/gtktetris/"
pankso@1036 11 WGET_URL="http://mirror.slitaz.org/sources/packages/g/$TARBALL"
pascal@15600 12
pascal@15600 13 DEPENDS="gtk+ xorg-libXdamage"
pascal@15600 14 BUILD_DEPENDS="gtk+-dev"
pascal@15600 15
pascal@24361 16 # What is the latest version available today?
pascal@24361 17 current_version()
pascal@24361 18 {
pascal@24361 19 wget -O - https://sourceforge.net/projects/gtktetris/files/gtktetris/ 2>/dev/null | \
pascal@24361 20 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
pascal@24361 21 sed '/scope="row/!d;s|.*/gtktetris/gtktetris-||;s|/.*||;q'
pascal@24361 22 }
pascal@24361 23
pankso@1036 24 # Rules to configure and make the package.
pankso@1036 25 compile_rules()
pankso@1036 26 {
pankso@1036 27 cd $src
pankso@1036 28 sed -i s:'BIN_PATH = /usr/local/bin':'BIN_PATH = /usr/games:' Makefile
pankso@1036 29 sed -i s:'HIGHSCORE_PATH = /usr/local/games/gtktetris':'HIGHSCORE_PATH=/var/games/gtktetris:' Makefile
pankso@1036 30 make
pankso@1036 31 }
pankso@1036 32
pankso@1036 33 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@1036 34 genpkg_rules()
pankso@1036 35 {
pankso@1036 36 mkdir -p $fs/usr/games $fs/var/games/gtktetris
pankso@1036 37 cp -a $src/gtktetris $fs/usr/games
pankso@1036 38 touch $fs/var/games/gtktetris/highscore.dat
pankso@1036 39 chmod 666 $fs/var/games/gtktetris/highscore.dat
pankso@1036 40 }
pankso@1036 41