wok-current annotate lilv/receipt @ rev 24447
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Feb 14 17:51:14 2022 +0000 (2022-02-14) |
parents | b9b707621001 |
children | 870e1ce31226 |
rev | line source |
---|---|
pascal@13387 | 1 # SliTaz package receipt. |
pascal@13387 | 2 |
pascal@13387 | 3 PACKAGE="lilv" |
Hans-G?nter@23132 | 4 VERSION="0.24.6" |
pascal@13387 | 5 CATEGORY="development" |
pascal@13387 | 6 SHORT_DESC="Make the use of LV2 plugins as simple as possible for applications." |
pascal@13387 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15379 | 8 LICENSE="MIT" |
Hans-G?nter@23132 | 9 WEB_SITE="https://drobilla.net/software/lilv/" |
Hans-G?nter@23132 | 10 |
pascal@13387 | 11 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
Hans-G?nter@23132 | 12 WGET_URL="https://download.drobilla.net/$TARBALL" |
pascal@13387 | 13 |
pascal@13387 | 14 DEPENDS="serd sord sratom" |
Hans-G?nter@23132 | 15 BUILD_DEPENDS="lv2 pkg-config serd-dev sord-dev sratom" |
pascal@13387 | 16 |
pascal@24447 | 17 # What is the latest version available today? |
pascal@24447 | 18 current_version() |
pascal@24447 | 19 { |
pascal@24447 | 20 wget -O - ${WGET_URL%/*} 2>/dev/null | \ |
pascal@24447 | 21 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q |
pascal@24447 | 22 } |
pascal@24447 | 23 |
pascal@13387 | 24 # Rules to configure and make the package. |
pascal@13387 | 25 compile_rules() |
pascal@13387 | 26 { |
pascal@13387 | 27 ./waf configure --prefix=/usr && |
pascal@13387 | 28 ./waf build && |
pascal@13387 | 29 ./waf install --destdir=$DESTDIR |
pascal@13387 | 30 } |
pascal@13387 | 31 |
pascal@13387 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@13387 | 33 genpkg_rules() |
pascal@13387 | 34 { |
Hans-G?nter@23132 | 35 cp -a $install/* $fs |
pascal@13387 | 36 } |