31 lines
1.1 KiB
Bash
31 lines
1.1 KiB
Bash
# Maintainer: Martchus <martchus@gmx.net>
|
|
# Contributor: Florian Bruhin (The Compiler) <archlinux.org@the-compiler.org>
|
|
|
|
pkgname=baikal
|
|
pkgver=0.9.0
|
|
pkgrel=1
|
|
pkgdesc='Lightweight CalDAV+CardDAV server'
|
|
url='http://sabre.io/baikal/'
|
|
arch=('any')
|
|
license=('GPL')
|
|
depends=('php')
|
|
optdepends=('sqlite: Database' 'mariadb: Alternate database' 'php-sqlite: To use the sqlite backend')
|
|
source=("https://github.com/fruux/Baikal/releases/download/$pkgver/baikal-$pkgver.zip"
|
|
'baikal.install')
|
|
sha1sums=('c7fe67cf81190ee3ea0b480f481f44fff5dd1bac'
|
|
'deb948e61c3cd8d6ad560321f78c0b288f7a6210')
|
|
options=('!strip')
|
|
install=baikal.install
|
|
|
|
package() {
|
|
cd "${srcdir}/baikal"
|
|
|
|
install -dm 755 "$pkgdir"/usr/share/{webapps,doc}"/$pkgname"
|
|
install -dm 700 -o http -g http "$pkgdir/var/lib/$pkgname"
|
|
install -dm 700 -o http -g http "$pkgdir/var/lib/$pkgname/config"
|
|
cp -R Core html vendor "$pkgdir/usr/share/webapps/$pkgname"
|
|
install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname"
|
|
ln -s "/var/lib/$pkgname" "$pkgdir/usr/share/webapps/$pkgname/Specific"
|
|
ln -s "/var/lib/$pkgname/config" "$pkgdir/usr/share/webapps/$pkgname/config"
|
|
}
|