summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 466f91fb10044149caaaa8149693515d0a6403b3 (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
27
28
29
# Maintainer: Scott Dickson <scottfoesho@gmail.com>

pkgname=cops
pkgver=1.1.1
pkgrel=1
pkgdesc='Calibre OPDS (and HTML) PHP Server : web-based light alternative to Calibre content server / Calibre2OPDS to serve ebooks'
arch=('any')
url='https://github.com/seblucas/cops'
license=('GPL2')
depends=('php' 'php-gd' 'php-intl' 'php-sqlite')
optdepends=('apache: Web server to run COPS'
            'nginx: Web server to run COPS'
	    'cherokee: Web server to run COPS')
makedepends=('unzip')
install="$pkgname.install"
source=("https://github.com/seblucas/cops/releases/download/1.1.1/cops-1.1.1.zip")
sha256sums=('242262d0b468b6ce42564d3c125b1ff2ca76d86fd44db78a598ebd2cd3317cb1')

package() {
  rm "${srcdir}/cops-$pkgver.zip"
  cd $srcdir
  install -d "$pkgdir/etc/webapps/cops"
  cp config_local.php.example "$pkgdir/etc/webapps/cops/"
  install -d "$pkgdir/usr/share/webapps/cops"
  cp -r . "$pkgdir/usr/share/webapps/cops/"
  ln -s "../../../../../etc/webapps/cops/config_local.php" "$pkgdir/usr/share/webapps/cops/config_local.php"
  ln -s "../../../../../etc/webapps/cops/metadata.db" "$pkgdir/usr/share/webapps/cops/metadata.db"
}