wok-6.x annotate gtkballs/receipt @ rev 25445
itaka: fix wget_url
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Sep 06 07:38:52 2022 +0000 (2022-09-06) |
parents | d1c17bd2c2bc |
children |
rev | line source |
---|---|
pankso@291 | 1 # SliTaz package receipt. |
pankso@291 | 2 |
pankso@291 | 3 PACKAGE="gtkballs" |
pankso@291 | 4 VERSION="3.1.5" |
pankso@291 | 5 CATEGORY="games" |
pankso@291 | 6 SHORT_DESC="Clone of DOS Lines." |
pankso@291 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15589 | 8 LICENSE="GPL2" |
pankso@291 | 9 SUGGESTED="gtkballs-themes" |
pankso@291 | 10 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pankso@291 | 11 WEB_SITE="http://gtkballs.antex.ru/" |
pankso@291 | 12 WGET_URL="http://gtkballs.antex.ru/dist/$TARBALL" |
pankso@291 | 13 |
pascal@15589 | 14 DEPENDS="gtk+ xorg-libXdamage" |
pascal@15589 | 15 BUILD_DEPENDS="gtk+-dev" |
pascal@15589 | 16 |
pascal@24445 | 17 # What is the latest version available today? |
pascal@24445 | 18 current_version() |
pascal@24445 | 19 { |
pascal@24445 | 20 wget -O - $WEB_SITE 2>/dev/null | \ |
pascal@24445 | 21 sed 's|>|>\n|g' | sed '/^gtkballs-/!d;/tar/!d;s|gtkballs-||;s|.tar.*||;q' |
pascal@24445 | 22 } |
pascal@24445 | 23 |
pankso@291 | 24 # Rules to configure and make the package. |
pankso@291 | 25 compile_rules() |
pankso@291 | 26 { |
pankso@291 | 27 cd $src |
pankso@291 | 28 ./configure \ |
pankso@291 | 29 --prefix=/usr \ |
pankso@291 | 30 --bindir=/usr/games \ |
pankso@291 | 31 --localstatedir=/var/games \ |
pankso@291 | 32 --mandir=/usr/share/man \ |
pascal@2516 | 33 $CONFIGURE_ARGS && |
pascal@2516 | 34 make && |
pascal@15589 | 35 make DESTDIR=$DESTDIR install |
pankso@291 | 36 } |
pankso@291 | 37 |
pankso@291 | 38 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@291 | 39 genpkg_rules() |
pankso@291 | 40 { |
pankso@291 | 41 mkdir -p $fs/usr/share/gtkballs/themes $fs/usr/share/pixmaps |
pascal@15589 | 42 cp -a $install/usr/games $fs/usr |
pankso@291 | 43 # Themes |
pascal@15589 | 44 #cp -a $install/usr/share/gtkballs/themes/Default \ |
pankso@291 | 45 # $fs/usr/share/gtkballs/themes |
pascal@15589 | 46 cp -a $install/usr/share/gtkballs/themes/klines \ |
pankso@291 | 47 $fs/usr/share/gtkballs/themes/Default |
pankso@291 | 48 cp -a stuff/cell.xpm $fs/usr/share/gtkballs/themes/Default |
pankso@291 | 49 # Pixmaps |
pascal@15589 | 50 cp -a $install/usr/share/gtkballs/gtkballs_16x16.png \ |
pankso@291 | 51 $fs/usr/share/pixmaps/gtkballs.png |
pascal@15589 | 52 cp -a $install/var $fs |
pankso@291 | 53 chmod 666 $fs/var/games/gtkballs-scores |
pankso@291 | 54 } |
pankso@291 | 55 |