wok annotate gupnp/receipt @ rev 24938
mypaint-brushes: add current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Apr 14 09:10:40 2022 +0000 (2022-04-14) |
parents | cb18a67a7ff6 |
children |
rev | line source |
---|---|
pascal@16072 | 1 # SliTaz package receipt. |
pascal@16072 | 2 |
pascal@16072 | 3 PACKAGE="gupnp" |
pascal@16072 | 4 VERSION="0.20.10" |
pascal@16072 | 5 CATEGORY="network" |
pascal@16072 | 6 SHORT_DESC="Framework for creating UPnP devices and control points." |
pascal@16072 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@16072 | 8 LICENSE="LGPL2" |
pascal@16072 | 9 TARBALL="$PACKAGE-$VERSION.tar.xz" |
pascal@16072 | 10 WEB_SITE="https://wiki.gnome.org/action/show/Projects/GUPnP" |
pascal@16072 | 11 WGET_URL="https://download.gnome.org/sources/$PACKAGE/${VERSION%.*}/$TARBALL" |
pascal@16072 | 12 |
pascal@16072 | 13 DEPENDS="libsoup util-linux-uuid gssdp" |
pascal@17758 | 14 BUILD_DEPENDS="wget libsoup-dev util-linux-uuid-dev gssdp-dev sqlite-dev" |
pascal@16072 | 15 |
pascal@24111 | 16 current_version() |
pascal@24111 | 17 { |
pascal@24111 | 18 wget -O - $(dirname $WGET_URL) 2>/dev/null | \ |
pascal@24111 | 19 sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q |
pascal@24111 | 20 } |
pascal@24111 | 21 |
pascal@16072 | 22 # Rules to configure and make the package. |
pascal@16072 | 23 compile_rules() |
pascal@16072 | 24 { |
pascal@16072 | 25 ./configure --prefix=/usr --infodir=/usr/share/info \ |
pascal@16072 | 26 --mandir=/usr/share/man \ |
pascal@16072 | 27 $CONFIGURE_ARGS && |
pascal@16072 | 28 make && |
pascal@16072 | 29 make DESTDIR=$DESTDIR install |
pascal@16072 | 30 } |
pascal@16072 | 31 |
pascal@16072 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@16072 | 33 genpkg_rules() |
pascal@16072 | 34 { |
pascal@16072 | 35 mkdir -p $fs/usr/lib |
pascal@16072 | 36 cp -a $install/usr/bin $fs/usr |
pascal@16072 | 37 cp -a $install/usr/lib/*.so* $fs/usr/lib |
pascal@16072 | 38 } |