wok-6.x annotate pixiewps/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 | bd7112b1dc19 |
children |
rev | line source |
---|---|
pascal@20018 | 1 # SliTaz package receipt. |
pascal@20018 | 2 |
pascal@20018 | 3 PACKAGE="pixiewps" |
Hans-G?nter@21682 | 4 VERSION="1.4.2" |
pascal@20018 | 5 CATEGORY="network" |
pascal@20018 | 6 SHORT_DESC="An offline WPS brute-force utility." |
pascal@20018 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@20018 | 8 LICENSE="GPL3" |
pascal@20018 | 9 WEB_SITE="https://github.com/wiire-a/pixiewps" |
Hans-G?nter@21682 | 10 |
pascal@20018 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@20018 | 12 WGET_URL="$WEB_SITE/archive/v$VERSION.tar.gz" |
pascal@20018 | 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|.*/v\(.*\).tar.*|\1|;q' |
pascal@24055 | 18 } |
pascal@24055 | 19 |
pascal@20018 | 20 # Rules to configure and make the package. |
pascal@20018 | 21 compile_rules() |
pascal@20018 | 22 { |
Hans-G?nter@21683 | 23 make |
pascal@20018 | 24 } |
pascal@20018 | 25 |
pascal@20018 | 26 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@20018 | 27 genpkg_rules() |
pascal@20018 | 28 { |
Hans-G?nter@21682 | 29 mkdir -p $fs/usr/bin |
Hans-G?nter@21682 | 30 mkdir -p $install/usr/share/doc |
Hans-G?nter@21682 | 31 |
Hans-G?nter@21683 | 32 cp -a $src/pixiewps $fs/usr/bin |
Hans-G?nter@21682 | 33 cp -a $src/README.md $install/usr/share/doc |
pascal@20018 | 34 } |