wok annotate libsigsegv/receipt @ rev 24391
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Feb 07 18:01:05 2022 +0000 (2022-02-07) |
parents | 60debd434ad3 |
children | 5fe4ecec3100 |
rev | line source |
---|---|
paul@4578 | 1 # SliTaz package receipt. |
paul@4578 | 2 |
paul@4578 | 3 PACKAGE="libsigsegv" |
Hans-G?nter@21298 | 4 VERSION="2.12" |
paul@4578 | 5 CATEGORY="development" |
paul@4578 | 6 SHORT_DESC="Library for handling page faults in user mode." |
paul@4578 | 7 MAINTAINER="paul@slitaz.org" |
pascal@15482 | 8 LICENSE="GPL2" |
Hans-G?nter@21298 | 9 WEB_SITE="https://www.gnu.org/software/libsigsegv/" |
Hans-G?nter@21298 | 10 |
paul@4578 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
paul@4578 | 12 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL" |
paul@4578 | 13 |
pascal@15482 | 14 DEPENDS="" |
pascal@15482 | 15 |
pascal@24336 | 16 # What is the latest version available today? |
pascal@24336 | 17 current_version() |
pascal@24336 | 18 { |
pascal@24336 | 19 wget -O - ${WGET_URL%/*} 2>/dev/null | \ |
pascal@24336 | 20 sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q |
pascal@24336 | 21 } |
pascal@24336 | 22 |
paul@4578 | 23 # Rules to configure and make the package. |
paul@4578 | 24 compile_rules() |
paul@4578 | 25 { |
Hans-G?nter@21298 | 26 ./configure \ |
Hans-G?nter@21298 | 27 --prefix=/usr \ |
Hans-G?nter@21298 | 28 --infodir=/usr/share/info \ |
Hans-G?nter@21298 | 29 --mandir=/usr/share/man \ |
paul@4578 | 30 $CONFIGURE_ARGS && |
Hans-G?nter@21298 | 31 make -j 1 && |
Hans-G?nter@21298 | 32 make DESTDIR=$DESTDIR install |
paul@4578 | 33 } |
paul@4578 | 34 |
paul@4578 | 35 # Rules to gen a SliTaz package suitable for Tazpkg. |
paul@4578 | 36 genpkg_rules() |
paul@4578 | 37 { |
paul@4578 | 38 mkdir -p $fs/usr/lib |
Hans-G?nter@21298 | 39 |
Hans-G?nter@21298 | 40 cp -a $install/usr/lib $fs/usr |
Hans-G?nter@21298 | 41 cp -a $install/usr/include $fs/usr |
paul@4578 | 42 } |