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"
|
2020-12-20 14:16:34 +01:00
|
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
2020-10-18 10:32:49 +02:00
|
|
|
TERMUX_PKG_VERSION=5.0.4
|
2020-12-17 15:42:55 +01:00
|
|
|
TERMUX_PKG_REVISION=2
|
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
|
2020-10-18 10:32:49 +02:00
|
|
|
TERMUX_PKG_SHA256=1578c1a08e594da4f4f62e676ccbdbd17784c3de769b094ba42c35bf05c057db
|
2020-08-31 13:41:55 +02:00
|
|
|
TERMUX_PKG_DEPENDS="apache2, php"
|
|
|
|
TERMUX_PKG_CONFFILES="etc/phpmyadmin/config.inc.php"
|
|
|
|
|
|
|
|
termux_step_make_install() {
|
2020-12-17 15:41:51 +01:00
|
|
|
rm -rf $TERMUX_PREFIX/share/phpmyadmin
|
|
|
|
mkdir -p $TERMUX_PREFIX/share/phpmyadmin
|
|
|
|
cp -a $TERMUX_PKG_SRCDIR/* $TERMUX_PREFIX/share/phpmyadmin/
|
2020-08-31 13:41:55 +02:00
|
|
|
mkdir -p $TERMUX_PREFIX/etc/phpmyadmin
|
|
|
|
cp $TERMUX_PKG_SRCDIR/config.sample.inc.php $TERMUX_PREFIX/etc/phpmyadmin/config.inc.php
|
2020-12-17 15:41:51 +01:00
|
|
|
ln -s $TERMUX_PREFIX/etc/phpmyadmin/config.inc.php $TERMUX_PREFIX/share/phpmyadmin
|
2020-09-02 01:10:58 +02:00
|
|
|
mkdir -p $TERMUX_PREFIX/etc/apache2/conf.d
|
2020-10-30 21:38:10 +01:00
|
|
|
sed -e "s%\@TERMUX_PREFIX\@%${TERMUX_PREFIX}%g" $TERMUX_PKG_BUILDER_DIR/phpmyadmin.conf \
|
|
|
|
> $TERMUX_PREFIX/etc/apache2/conf.d/phpmyadmin.conf
|
2020-08-31 13:41:55 +02:00
|
|
|
}
|