wok-6.x annotate adminer/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 | e45302e3b0d0 |
children | 62b29084b518 |
rev | line source |
---|---|
pascal@13591 | 1 # SliTaz package receipt. |
pascal@13591 | 2 |
pascal@13591 | 3 PACKAGE="adminer" |
Hans-G?nter@22471 | 4 VERSION="4.7.5" |
pascal@13591 | 5 CATEGORY="misc" |
pascal@13591 | 6 SHORT_DESC="Database management in a single PHP file." |
pascal@13591 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@17184 | 8 LICENSE="GPL2 Apache" |
Hans-G?nter@22471 | 9 WEB_SITE="https://www.adminer.org/" |
Hans-G?nter@22471 | 10 |
pascal@17184 | 11 TARBALL="$PACKAGE-$VERSION.zip" |
Hans-G?nter@22471 | 12 WGET_URL="https://github.com/vrana/$PACKAGE/releases/download/v$VERSION/$TARBALL" |
pascal@13591 | 13 |
Hans-G?nter@22471 | 14 SUGGESTED="php-mysql php-pgsql php-sqlite" |
pascal@13591 | 15 DEPENDS="php" |
pascal@17184 | 16 BUILD_DEPENDS="php-cli php-mysql php-pgsql php-sqlite" |
pascal@13591 | 17 |
pascal@24055 | 18 current_version() |
pascal@24055 | 19 { |
pascal@24055 | 20 wget -O - ${WGET_URL%/down*} 2>/dev/null | \ |
pascal@24055 | 21 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q' |
pascal@24055 | 22 } |
pascal@24055 | 23 |
pascal@13591 | 24 # Rules to configure and make the package. |
pascal@13591 | 25 compile_rules() |
pascal@13591 | 26 { |
pascal@17186 | 27 php compile.php 2>&1 | sed '/^PHP Warning/d' |
pascal@13591 | 28 } |
pascal@13591 | 29 |
pascal@13591 | 30 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@13591 | 31 genpkg_rules() |
pascal@13591 | 32 { |
pascal@13591 | 33 mkdir -p $fs/var/www/$PACKAGE |
pascal@17184 | 34 cp $src/adminer-$VERSION.php $fs/var/www/$PACKAGE/index.php |
pascal@13591 | 35 } |