wok-6.x annotate gtklife/receipt @ rev 24445

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Feb 14 14:14:23 2022 +0000 (2022-02-14)
parents ea56b66bde41
children
rev   line source
pankso@291 1 # SliTaz package receipt.
pankso@291 2
pankso@291 3 PACKAGE="gtklife"
Hans-G?nter@21011 4 VERSION="5.2"
pankso@291 5 CATEGORY="games"
pankso@291 6 SHORT_DESC="Fast, featureful, open-source Conway's Life program."
pankso@291 7 MAINTAINER="pankso@slitaz.org"
pascal@15589 8 LICENSE="GPL2"
Hans-G?nter@21011 9 WEB_SITE="http://ironphoenix.org/gtklife/"
Hans-G?nter@21011 10
pankso@291 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@21011 12 WGET_URL="http://ironphoenix.org/$PACKAGE/$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 "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed 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 {
pascal@17670 27 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -lX11"
Hans-G?nter@21011 28
Hans-G?nter@21011 29 ./configure \
Hans-G?nter@21011 30 --prefix=/usr \
Hans-G?nter@21011 31 --bindir=/usr/games \
Hans-G?nter@21011 32 --with-gtk2 \
pascal@2516 33 $CONFIGURE_ARGS &&
pascal@2516 34 make || return 1
Hans-G?nter@21011 35
Hans-G?nter@21011 36 mkdir -p \
Hans-G?nter@21011 37 $DESTDIR/usr/games \
Hans-G?nter@21011 38 $DESTDIR/usr/share/gtklife
Hans-G?nter@21011 39 cp -a graphics $DESTDIR/usr/share/gtklife
Hans-G?nter@21011 40 cp -a patterns $DESTDIR/usr/share/gtklife
Hans-G?nter@21011 41 cp gtklife $DESTDIR/usr/games
pankso@291 42 }
pankso@291 43
pankso@291 44 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@291 45 genpkg_rules()
pankso@291 46 {
pascal@15589 47 cp -a $install/* $fs
pankso@291 48 }