void-packages/srcpkgs/phpMyAdmin/template

20 lines
751 B
Bash

# Template file for 'phpMyAdmin'
pkgname=phpMyAdmin
version=5.2.1
revision=1
conf_files="/etc/webapps/phpMyAdmin/config.inc.php"
depends="virtual?php-runtime"
short_desc="Web interface for MySQL and MariaDB"
maintainer="Joel Beckmeyer <joel@beckmeyer.us>"
license="GPL-2.0-only"
homepage="https://www.phpmyadmin.net"
distfiles="https://files.phpmyadmin.net/phpMyAdmin/${version}/phpMyAdmin-${version}-all-languages.tar.xz"
checksum=373f9599dfbd96d6fe75316d5dad189e68c305f297edf42377db9dd6b41b2557
do_install() {
vmkdir usr/share/webapps/
vcopy ${wrksrc} usr/share/webapps/phpMyAdmin
vinstall config.sample.inc.php 644 /etc/webapps/phpMyAdmin/ config.inc.php
ln -s /etc/webapps/phpMyAdmin/config.inc.php ${DESTDIR}/usr/share/webapps/phpMyAdmin/
}