wok view lsof/receipt @ rev 24819

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