# Template file for 'phpMyAdmin'
pkgname=phpMyAdmin
version=5.2.2
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=f881819a3b11e653b0212afaf0cc105db85c767715cb3f5852670f7fc36c9669

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/
}
