wok-current view adminer/receipt @ rev 24056
Up zstd (1.5.0)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Jun 08 09:29:15 2021 +0000 (2021-06-08) |
parents | e45302e3b0d0 |
children | 62b29084b518 |
line source
1 # SliTaz package receipt.
3 PACKAGE="adminer"
4 VERSION="4.7.5"
5 CATEGORY="misc"
6 SHORT_DESC="Database management in a single PHP file."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2 Apache"
9 WEB_SITE="https://www.adminer.org/"
11 TARBALL="$PACKAGE-$VERSION.zip"
12 WGET_URL="https://github.com/vrana/$PACKAGE/releases/download/v$VERSION/$TARBALL"
14 SUGGESTED="php-mysql php-pgsql php-sqlite"
15 DEPENDS="php"
16 BUILD_DEPENDS="php-cli php-mysql php-pgsql php-sqlite"
18 current_version()
19 {
20 wget -O - ${WGET_URL%/down*} 2>/dev/null | \
21 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 php compile.php 2>&1 | sed '/^PHP Warning/d'
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs/var/www/$PACKAGE
34 cp $src/adminer-$VERSION.php $fs/var/www/$PACKAGE/index.php
35 }