wok annotate cgoban/receipt @ rev 25562
ext4magic: add current_version()
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon May 01 08:21:00 2023 +0000 (18 months ago) |
parents | 9af0e03b8ad0 |
children | 6b33f9da53d4 |
rev | line source |
---|---|
pascal@4571 | 1 # SliTaz package receipt. |
pascal@4571 | 2 |
pascal@4571 | 3 PACKAGE="cgoban" |
pascal@4571 | 4 VERSION="1.9.14" |
pascal@4571 | 5 CATEGORY="games" |
pascal@4571 | 6 SHORT_DESC="Large set of go-related services for Unix and X11." |
pascal@4571 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15001 | 8 LICENSE="GPL2" |
pascal@4571 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@25460 | 10 WEB_SITE="https://cgoban1.sourceforge.net/" |
pascal@4571 | 11 WGET_URL="$SF_MIRROR/cgoban1/$TARBALL" |
pascal@15001 | 12 SUGGESTED="gnugo" |
pascal@15001 | 13 |
pascal@4571 | 14 DEPENDS="gtk+" |
pascal@8940 | 15 BUILD_DEPENDS="gtk+-dev xorg-dev" |
pascal@4571 | 16 |
pascal@24373 | 17 # What is the latest version available today? |
pascal@24373 | 18 current_version() |
pascal@24373 | 19 { |
pascal@24373 | 20 wget -O - https://sourceforge.net/projects/cgoban1/files/cgoban1/ 2>/dev/null | \ |
pascal@24373 | 21 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ |
pascal@24373 | 22 sed '/scope="row/!d;s|.*/cgoban1/||;s|/.*||;q' |
pascal@24373 | 23 } |
pascal@24373 | 24 |
pascal@4571 | 25 # Rules to configure and make the package. |
pascal@4571 | 26 compile_rules() |
pascal@4571 | 27 { |
pascal@4571 | 28 cd $src |
pascal@4571 | 29 ./configure --prefix=/usr --infodir=/usr/share/info \ |
pascal@4571 | 30 --mandir=/usr/share/man \ |
pascal@4571 | 31 $CONFIGURE_ARGS && |
pascal@4571 | 32 make && |
pascal@15001 | 33 make DESTDIR=$DESTDIR install |
pascal@4571 | 34 } |
pascal@4571 | 35 |
pascal@4571 | 36 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@4571 | 37 genpkg_rules() |
pascal@4571 | 38 { |
pascal@4571 | 39 mkdir -p $fs/usr/bin $fs/usr/share/applications |
pascal@15001 | 40 cp -a $install/usr/bin/cgoban $fs/usr/bin |
pascal@4571 | 41 } |
pascal@4571 | 42 |