wok annotate pgbadger/receipt @ rev 25604
Update some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Jul 18 17:30:47 2023 +0000 (16 months ago) |
parents | 5ea0ce1cecc0 |
children |
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@25601 | 17 # What is the latest version available today? |
pascal@24055 | 18 current_version() |
pascal@24055 | 19 { |
pascal@24055 | 20 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@25601 | 21 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q' |
pascal@24055 | 22 } |
pascal@24055 | 23 |
pascal@18946 | 24 # Rules to configure and make the package. |
pascal@18946 | 25 compile_rules() |
pascal@18946 | 26 { |
pascal@18946 | 27 perl Makefile.PL --prefix=/usr && |
pascal@18946 | 28 make && |
pascal@18946 | 29 make DESTDIR=$DESTDIR install |
pascal@18946 | 30 } |
pascal@18946 | 31 |
pascal@18946 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@18946 | 33 genpkg_rules() |
pascal@18946 | 34 { |
Hans-G?nter@23423 | 35 cp -a $install/usr $fs |
pascal@18946 | 36 } |