summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 06c5af5bb4558798e6a5825f1bf8dc813f2a9b8e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Maintainer: Alexander Sobolevkiy <smak.nsk@gmail.com>
# Contributor: Erik Dubbelboer <erik@dubbelboer.com>

pkgname=phpredisadmin
pkgver=1.7.0
pkgrel=1
pkgdesc="phpRedisAdmin is a simple web interface to manage Redis databases"
arch=('any')
url="https://github.com/erikdubbelboer/phpRedisAdmin"
license=('GPL')
source=("https://github.com/erikdubbelboer/phpRedisAdmin/archive/v${pkgver}.tar.gz"
        "https://github.com/nrk/predis/archive/v1.1.1.zip")
md5sums=('33ac176c3564d5204927ed9ab22849a9'
         '8755fd28c226c5ac2b73c09b0dce70de')

package() {
  _instdir="$pkgdir"/usr/share/webapps/phpRedisAdmin
  mkdir -p "$_instdir" "$pkgdir"/etc/webapps/phpredisadmin
  cd "$_instdir"

  cp -ra "$srcdir"/phpRedisAdmin-$pkgver/* .
  cp -ra "$srcdir"/predis-1.1.1 ./vendor

  ln -s /etc/webapps/phpredisadmin/config.inc.php "$_instdir"/includes/config.inc.php
  cp "$_instdir"/includes/config.sample.inc.php "$pkgdir"/etc/webapps/phpredisadmin/config.inc.php
}