1 # Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
2 # Maintainer: wizzomafizzo <wizzomafizzo@gmail.com>
3 # Contributor: Benjamin Andresen <benny@klapmuetz.org>
8 pkgdesc="A web-based administration tool for PostgreSQL"
10 url="https://github.com/phppgadmin/phppgadmin/"
12 depends=('php7' 'php7-pgsql')
13 backup=('etc/webapps/phppgadmin/config.inc.php')
14 source=("https://github.com/phppgadmin/phppgadmin/releases/download/REL_${pkgver//./-}/phpPgAdmin-$pkgver.tar.bz2")
15 sha256sums=('dc9a5d74c49330af65664b3fd145df2b76c63f946e0de86e306b308ad104939c')
18 _instdir="$pkgdir"/usr/share/webapps/phppgadmin
19 mkdir -p ${_instdir} "$pkgdir"/etc/webapps/phppgadmin
21 cp -ra "$srcdir"/phpPgAdmin-$pkgver/* .
22 cp ./conf/config.inc.php-dist "$pkgdir"/etc/webapps/phppgadmin/config.inc.php
23 rm -f ${_instdir}/conf/config.inc.php
24 ln -s /etc/webapps/phppgadmin/config.inc.php ${_instdir}/conf/config.inc.php