wok-6.x view arp-scan/receipt @ rev 24565

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Feb 25 22:15:31 2022 +0000 (2022-02-25)
parents 8b1706ed1b75
children
line source
1 # SliTaz package receipt.
3 PACKAGE="arp-scan"
4 VERSION="1.9.7"
5 CATEGORY="network"
6 SHORT_DESC="The ARP Scanner."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="https://github.com/royhills/arp-scan"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$WEB_SITE/archive/$VERSION.tar.gz"
14 DEPENDS="libpcap perl"
15 BUILD_DEPENDS="autoconf automake libpcap-dev"
17 current_version()
18 {
19 wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \
20 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 autoreconf --install &&
27 ./configure --prefix=/usr $CONFIGURE_ARGS &&
28 make &&
29 make check | sed '/0$/d' &&
30 make DESTDIR=$DESTDIR install
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 cook_copy_folders bin
37 cook_copy_folders arp-scan
38 }