wok annotate xaos/receipt @ rev 24304
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Jan 17 11:01:52 2022 +0000 (2022-01-17) |
parents | 5e6810e4a860 |
children | cb67b4f8be05 |
rev | line source |
---|---|
pascal@18125 | 1 # SliTaz package receipt. |
pascal@18125 | 2 |
pascal@18125 | 3 PACKAGE="xaos" |
pascal@18125 | 4 VERSION="3.6" |
pascal@18125 | 5 CATEGORY="graphics" |
pascal@18125 | 6 SHORT_DESC="Fast interactive fractal zoomer." |
pascal@18125 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@19678 | 8 LICENSE="GPL2" |
pascal@18125 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@18125 | 10 WEB_SITE="http://matek.hu/xaos/" |
pascal@18125 | 11 WGET_URL="http://heanet.dl.sourceforge.net/project/xaos/XaoS/$VERSION/$TARBALL" |
pascal@18125 | 12 |
pascal@18125 | 13 DEPENDS="libpng zlib" |
pascal@18125 | 14 BUILD_DEPENDS="pkg-config libpng-dev nasm gettext" |
pascal@18125 | 15 |
pascal@24304 | 16 # What is the latest version available today? |
pascal@24304 | 17 current_version() |
pascal@24304 | 18 { |
pascal@24304 | 19 wget -O - https://github.com/xaos-project/XaoS/releases 2>/dev/null | \ |
pascal@24304 | 20 sed '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;q' |
pascal@24304 | 21 } |
pascal@24304 | 22 |
pascal@18125 | 23 # Rules to configure and make the package. |
pascal@18125 | 24 compile_rules() |
pascal@18125 | 25 { |
pascal@18125 | 26 ./configure --prefix=/usr --infodir=/usr/share/info \ |
pascal@18125 | 27 --mandir=/usr/share/man \ |
pascal@18125 | 28 $CONFIGURE_ARGS && |
pascal@18125 | 29 make && |
pascal@18125 | 30 make DESTDIR=$DESTDIR install |
pascal@18125 | 31 } |
pascal@18125 | 32 |
pascal@18125 | 33 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@18125 | 34 genpkg_rules() |
pascal@18125 | 35 { |
pascal@18125 | 36 cp -a $install/* $fs/ |
pascal@18125 | 37 } |