archrelease: copy trunk to community-any
[ArchLinux/community.git] / phppgadmin / trunk / PKGBUILD
blobcea8c57377e7076dea85b65e5e09944376ac9a72
1 # Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
2 # Maintainer: wizzomafizzo <wizzomafizzo@gmail.com>
3 # Contributor: Benjamin Andresen <benny@klapmuetz.org>
5 pkgname=phppgadmin
6 pkgver=7.13.0
7 pkgrel=3
8 pkgdesc="A web-based administration tool for PostgreSQL"
9 arch=('any')
10 url="https://github.com/phppgadmin/phppgadmin/"
11 license=('GPL')
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')
17 package() {
18   _instdir="$pkgdir"/usr/share/webapps/phppgadmin
19   mkdir -p ${_instdir} "$pkgdir"/etc/webapps/phppgadmin
20   cd ${_instdir}
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