wok-6.x annotate tazusb/receipt @ rev 24069

Add some current_version()
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jul 06 11:01:20 2021 +0000 (2021-07-06)
parents 8f9abd79c4da
children
rev   line source
pankso@362 1 # SliTaz package receipt.
pankso@362 2
pankso@362 3 PACKAGE="tazusb"
pascal@23921 4 VERSION="209"
pankso@362 5 CATEGORY="base-system"
al@18286 6 SHORT_DESC="SliTaz LiveUSB utility"
pankso@5134 7 MAINTAINER="erjo@slitaz.org"
pascal@15021 8 LICENSE="GPL3"
al@18286 9 WEB_SITE="http://www.slitaz.org/"
psychomaniak@17908 10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
psychomaniak@17908 11 WGET_URL="http://hg.slitaz.org/$PACKAGE/archive/$VERSION.tar.bz2"
jozee@4973 12 TAGS="slitaz"
pankso@362 13
al@18286 14 DEPENDS="lzma"
al@18286 15
pascal@24069 16 current_version()
pascal@24069 17 {
pascal@24069 18 wget -O - http://hg.slitaz.org/$PACKAGE/ 2>/dev/null | \
pascal@24069 19 sed '/^Changeset/!d;s|.*">|http://hg.slitaz.org/'$PACKAGE'/rev/|;s|<.*||' | \
pascal@24069 20 xargs wget -O - 2>/dev/null | sed '/rev /!d;s|.*rev ||;s| .*||'
pascal@24069 21 }
pascal@24069 22
erjo@5128 23 # Rules to configure and make the package.
erjo@5128 24 compile_rules()
erjo@5128 25 {
pascal@17427 26 make DESTDIR=$DESTDIR VERSION=$VERSION install
erjo@5128 27 }
erjo@5128 28
pankso@362 29 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@362 30 #
pankso@362 31 genpkg_rules()
pankso@362 32 {
pankso@5156 33 mkdir -p $fs
pankso@10830 34 cp -a $install/usr $fs
pankso@362 35 chown -R root.root $fs
pankso@362 36 }