wok annotate lsof/receipt @ rev 25794
created recipe for exo-lang
author | Hans-G?nter Theisgen |
---|---|
date | Wed Oct 23 16:19:52 2024 +0100 (4 weeks ago) |
parents | 3c68bcd9c4a4 |
children |
rev | line source |
---|---|
pascal@2444 | 1 # SliTaz package receipt. |
pascal@2444 | 2 |
pascal@2444 | 3 PACKAGE="lsof" |
Hans-G?nter@24864 | 4 VERSION="4.94.0" |
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@25600 | 14 # What is the latest version available today? |
pascal@24055 | 15 current_version() |
pascal@24055 | 16 { |
pascal@24055 | 17 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@25600 | 18 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q' |
pascal@24055 | 19 } |
pascal@24055 | 20 |
pascal@2444 | 21 # Rules to configure and make the package. |
pascal@2444 | 22 compile_rules() |
pascal@2444 | 23 { |
Hans-G?nter@23143 | 24 # if [ ! -d ${PACKAGE}_${VERSION}_src ]; then |
Hans-G?nter@23143 | 25 # tar xf ${PACKAGE}_${VERSION}_src.tar |
Hans-G?nter@23143 | 26 # fi |
Hans-G?nter@23143 | 27 # cd ${PACKAGE}_${VERSION}_src |
Hans-G?nter@23143 | 28 |
pascal@2444 | 29 yes '' | ./Configure linux && |
Hans-G?nter@24864 | 30 make |
pascal@2444 | 31 } |
pascal@2444 | 32 |
pascal@2444 | 33 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@2444 | 34 genpkg_rules() |
pascal@2444 | 35 { |
pascal@2444 | 36 mkdir -p $fs/usr/bin |
Hans-G?nter@23143 | 37 cp $src/lsof $fs/usr/bin |
pascal@2444 | 38 } |