wok view pixiewps/receipt @ rev 24476
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Feb 18 09:29:30 2022 +0000 (2022-02-18) |
parents | bd7112b1dc19 |
children | 0262035dc1e7 |
line source
1 # SliTaz package receipt.
3 PACKAGE="pixiewps"
4 VERSION="1.4.2"
5 CATEGORY="network"
6 SHORT_DESC="An offline WPS brute-force utility."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="https://github.com/wiire-a/pixiewps"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$WEB_SITE/archive/v$VERSION.tar.gz"
14 current_version()
15 {
16 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
17 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
18 }
20 # Rules to configure and make the package.
21 compile_rules()
22 {
23 make
24 }
26 # Rules to gen a SliTaz package suitable for Tazpkg.
27 genpkg_rules()
28 {
29 mkdir -p $fs/usr/bin
30 mkdir -p $install/usr/share/doc
32 cp -a $src/pixiewps $fs/usr/bin
33 cp -a $src/README.md $install/usr/share/doc
34 }