wok annotate pgbadger/receipt @ rev 24497
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Feb 19 14:19:02 2022 +0000 (2022-02-19) |
parents | e28ff3691c2a |
children | 0262035dc1e7 |
rev | line source |
---|---|
pascal@18946 | 1 # SliTaz package receipt. |
pascal@18946 | 2 |
pascal@18946 | 3 PACKAGE="pgbadger" |
Hans-G?nter@23423 | 4 VERSION="11.2" |
pascal@18946 | 5 CATEGORY="misc" |
Hans-G?nter@21677 | 6 SHORT_DESC="A fast PostgreSQL Log Analyzer." |
pascal@18946 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@18946 | 8 LICENSE="BSD" |
Hans-G?nter@21677 | 9 WEB_SITE="https://pgbadger.darold.net/" |
Hans-G?nter@21677 | 10 |
pascal@18946 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@21677 | 12 WGET_URL="https://github.com/darold/$PACKAGE/archive/v$VERSION.tar.gz" |
pascal@18946 | 13 |
pascal@18946 | 14 DEPENDS="perl" |
pascal@18946 | 15 BUILD_DEPENDS="perl" |
pascal@18946 | 16 |
pascal@24055 | 17 current_version() |
pascal@24055 | 18 { |
pascal@24055 | 19 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@24055 | 20 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q' |
pascal@24055 | 21 } |
pascal@24055 | 22 |
pascal@18946 | 23 # Rules to configure and make the package. |
pascal@18946 | 24 compile_rules() |
pascal@18946 | 25 { |
pascal@18946 | 26 perl Makefile.PL --prefix=/usr && |
pascal@18946 | 27 make && |
pascal@18946 | 28 make DESTDIR=$DESTDIR install |
pascal@18946 | 29 } |
pascal@18946 | 30 |
pascal@18946 | 31 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@18946 | 32 genpkg_rules() |
pascal@18946 | 33 { |
Hans-G?nter@23423 | 34 cp -a $install/usr $fs |
pascal@18946 | 35 } |