2020-08-31 13:41:55 +02:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://www.phpmyadmin.net
|
|
|
|
TERMUX_PKG_DESCRIPTION="A PHP tool for administering MySQL databases"
|
|
|
|
TERMUX_PKG_LICENSE="GPL-2.0"
|
|
|
|
TERMUX_PKG_VERSION=5.0.2
|
2020-09-02 01:10:58 +02:00
|
|
|
TERMUX_PKG_REVISION=1
|
2020-08-31 13:41:55 +02:00
|
|
|
TERMUX_PKG_SRCURL=https://files.phpmyadmin.net/phpMyAdmin/$TERMUX_PKG_VERSION/phpMyAdmin-$TERMUX_PKG_VERSION-all-languages.tar.xz
|
|
|
|
TERMUX_PKG_SHA256=cbcc78d1499308d9329950fcba2ebaa84c559a934fe54efc027d459d8e4161c8
|
|
|
|
TERMUX_PKG_DEPENDS="apache2, php"
|
|
|
|
TERMUX_PKG_CONFFILES="etc/phpmyadmin/config.inc.php"
|
|
|
|
|
|
|
|
termux_step_make_install() {
|
|
|
|
rm -rf $TERMUX_PREFIX/usr/share/phpmyadmin
|
|
|
|
mkdir -p $TERMUX_PREFIX/usr/share/phpmyadmin
|
|
|
|
cp -a $TERMUX_PKG_SRCDIR/* $TERMUX_PREFIX/usr/share/phpmyadmin/
|
|
|
|
mkdir -p $TERMUX_PREFIX/etc/phpmyadmin
|
|
|
|
cp $TERMUX_PKG_SRCDIR/config.sample.inc.php $TERMUX_PREFIX/etc/phpmyadmin/config.inc.php
|
|
|
|
ln -s $TERMUX_PREFIX/etc/phpmyadmin/config.inc.php $TERMUX_PREFIX/usr/share/phpmyadmin
|
2020-09-02 01:10:58 +02:00
|
|
|
mkdir -p $TERMUX_PREFIX/etc/apache2/conf.d
|
|
|
|
cp $TERMUX_PKG_BUILDER_DIR/phpmyadmin.conf $TERMUX_PREFIX/etc/apache2/conf.d/
|
2020-08-31 13:41:55 +02:00
|
|
|
}
|