wok annotate libupnp/receipt @ rev 24411

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Feb 09 17:57:59 2022 +0000 (2022-02-09)
parents 6d955cb4f646
children bc2b9d9bed6f
rev   line source
pankso@4075 1 # SliTaz package receipt.
pankso@4075 2
pankso@4075 3 PACKAGE="libupnp"
Hans-G?nter@23115 4 VERSION="1.12.0"
pankso@4075 5 CATEGORY="network"
pankso@4075 6 SHORT_DESC="The portable Universal Plug and Play (UPnP)."
pankso@4075 7 MAINTAINER="pankso@slitaz.org"
pascal@15482 8 LICENSE="BSD"
Hans-G?nter@21327 9 WEB_SITE="https://pupnp.sourceforge.io/"
Hans-G?nter@21327 10
pankso@4075 11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pankso@4075 12 WGET_URL="$SF_MIRROR/pupnp/$TARBALL"
pankso@4075 13
pascal@15482 14 DEPENDS="libxml2"
pascal@15482 15 BUILD_DEPENDS="libxml2-dev libpthread-stubs"
pascal@15482 16
pascal@24411 17 # What is the latest version available today?
pascal@24411 18 current_version()
pascal@24411 19 {
pascal@24411 20 wget -O - https://github.com/pupnp/pupnp/releases 2>/dev/null | \
pascal@24411 21 sed '/archive.*tar/!d;s|.*/[a-z]*\(.*\).tar.*|\1|;q'
pascal@24411 22 }
pascal@24411 23
pankso@4075 24 # Rules to configure and make the package.
pankso@4075 25 compile_rules()
pankso@4075 26 {
Hans-G?nter@21327 27 ./configure \
Hans-G?nter@21327 28 --prefix=/usr \
Hans-G?nter@21327 29 --disable-largefile \
pankso@4075 30 $CONFIGURE_ARGS &&
Hans-G?nter@21327 31 make -j 1 &&
slaxemulator@12341 32 make DESTDIR=$DESTDIR install
pankso@4075 33 }
pankso@4075 34
pankso@4075 35 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@4075 36 genpkg_rules()
pankso@4075 37 {
pankso@4075 38 mkdir -p $fs/usr/lib
Hans-G?nter@23115 39 cp -a $install/usr/lib/*.so* $fs/usr/lib
pankso@4075 40 }