# SliTaz package receipt. PACKAGE="adminer" VERSION="4.8.1" CATEGORY="misc" SHORT_DESC="Database management in a single PHP file." MAINTAINER="pascal.bellard@slitaz.org" LICENSE="GPL2 Apache" WEB_SITE="https://www.adminer.org/" TARBALL="$PACKAGE-$VERSION.zip" WGET_URL="https://github.com/vrana/$PACKAGE/releases/download/v$VERSION/$TARBALL" SUGGESTED="php-mysql php-pgsql php-sqlite" DEPENDS="php" BUILD_DEPENDS="php-cli php-mysql php-pgsql php-sqlite" current_version() { wget -O - ${WGET_URL%/down*} 2>/dev/null | \ sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q' } # Rules to configure and make the package. compile_rules() { php compile.php 2>&1 | sed '/^PHP Warning/d' } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/var/www/$PACKAGE cp $src/adminer-$VERSION.php $fs/var/www/$PACKAGE/index.php }