wok-current annotate lsof/receipt @ rev 24055
Add current_version for most github hosted softwares
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Jun 08 08:46:05 2021 +0000 (2021-06-08) |
parents | 6129a0039d18 |
children | 3c68bcd9c4a4 |
rev | line source |
---|---|
pascal@2444 | 1 # SliTaz package receipt. |
pascal@2444 | 2 |
pascal@2444 | 3 PACKAGE="lsof" |
Hans-G?nter@23143 | 4 VERSION="4.93.2" |
pascal@2444 | 5 CATEGORY="system-tools" |
Hans-G?nter@21379 | 6 SHORT_DESC="List open files." |
pascal@2444 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15472 | 8 LICENSE="BSD" |
Hans-G?nter@23143 | 9 WEB_SITE="https://github.com/lsof-org/lsof/" |
Hans-G?nter@21379 | 10 |
Hans-G?nter@23143 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@23143 | 12 WGET_URL="${WEB_SITE}archive/$VERSION.tar.gz" |
pascal@2444 | 13 |
pascal@24055 | 14 current_version() |
pascal@24055 | 15 { |
pascal@24055 | 16 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@24055 | 17 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q' |
pascal@24055 | 18 } |
pascal@24055 | 19 |
pascal@2444 | 20 # Rules to configure and make the package. |
pascal@2444 | 21 compile_rules() |
pascal@2444 | 22 { |
Hans-G?nter@23143 | 23 # if [ ! -d ${PACKAGE}_${VERSION}_src ]; then |
Hans-G?nter@23143 | 24 # tar xf ${PACKAGE}_${VERSION}_src.tar |
Hans-G?nter@23143 | 25 # fi |
Hans-G?nter@23143 | 26 # cd ${PACKAGE}_${VERSION}_src |
Hans-G?nter@23143 | 27 |
pascal@2444 | 28 yes '' | ./Configure linux && |
pascal@2444 | 29 make |
pascal@2444 | 30 } |
pascal@2444 | 31 |
pascal@2444 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@2444 | 33 genpkg_rules() |
pascal@2444 | 34 { |
pascal@2444 | 35 mkdir -p $fs/usr/bin |
Hans-G?nter@23143 | 36 cp $src/lsof $fs/usr/bin |
pascal@2444 | 37 } |