wok-current annotate adminer/receipt @ rev 25124

updated apache-mod-perl (2.0.8 -> 2.0.11)
author Hans-G?nter Theisgen
date Tue Jun 28 16:23:55 2022 +0100 (2022-06-28)
parents 5ea0ce1cecc0
children
rev   line source
pascal@13591 1 # SliTaz package receipt.
pascal@13591 2
pascal@13591 3 PACKAGE="adminer"
Hans-G?nter@24107 4 VERSION="4.8.1"
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
Hans-G?nter@24107 34 cp $src/adminer-$VERSION.php $fs/var/www/$PACKAGE/index.php
pascal@13591 35 }