wok-current annotate libunwind/receipt @ rev 24415
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Feb 10 18:04:02 2022 +0000 (2022-02-10) |
parents | 60ff708a9bbf |
children | bc4acb77e841 |
rev | line source |
---|---|
pankso@16204 | 1 # SliTaz package receipt. |
pankso@16204 | 2 |
pankso@16204 | 3 PACKAGE="libunwind" |
Hans-G?nter@23114 | 4 VERSION="1.3.1" |
pankso@16204 | 5 CATEGORY="development" |
pankso@16204 | 6 SHORT_DESC="C programming interface (API) to determine the call-chain of a program." |
pankso@16204 | 7 MAINTAINER="pankso@slitaz.org" |
Hans-G?nter@21326 | 8 LICENSE="X11" |
Hans-G?nter@21326 | 9 WEB_SITE="https://www.nongnu.org/libunwind/" |
Hans-G?nter@21326 | 10 |
pankso@16204 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pankso@16204 | 12 WGET_URL="http://download.savannah.gnu.org/releases/libunwind/$TARBALL" |
pankso@16204 | 13 |
pankso@16204 | 14 DEPENDS="liblzma" |
pankso@16204 | 15 BUILD_DEPENDS="liblzma-dev" |
pankso@16204 | 16 |
pascal@24415 | 17 # What is the latest version available today? |
pascal@24415 | 18 current_version() |
pascal@24415 | 19 { |
pascal@24415 | 20 wget -O - ${WGET_URL%/*} 2>/dev/null | \ |
pascal@24415 | 21 sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-||;s|.tar.*||" | sort -Vr | sed q |
pascal@24415 | 22 } |
pascal@24415 | 23 |
pankso@16204 | 24 # Rules to configure and make the package. |
pankso@16204 | 25 compile_rules() |
pankso@16204 | 26 { |
pankso@16204 | 27 ./configure \ |
pankso@16204 | 28 $CONFIGURE_ARGS && |
Hans-G?nter@21326 | 29 make -j 1 && |
Hans-G?nter@21326 | 30 make install |
pankso@16204 | 31 } |
pankso@16204 | 32 |
pankso@16204 | 33 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@16204 | 34 genpkg_rules() |
pankso@16204 | 35 { |
pankso@16204 | 36 mkdir -p $fs/usr/lib |
Hans-G?nter@23114 | 37 cp -a $install/usr/lib/*.so* $fs/usr/lib |
pankso@16204 | 38 } |