diff options
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 16 |
2 files changed, 16 insertions, 4 deletions
@@ -1,7 +1,7 @@ pkgbase = baikal pkgdesc = Lightweight CalDAV+CardDAV server pkgver = 0.6.0 - pkgrel = 1 + pkgrel = 2 url = http://sabre.io/baikal/ install = baikal.install arch = any @@ -13,8 +13,10 @@ pkgbase = baikal options = !strip source = https://github.com/fruux/Baikal/releases/download/0.6.0/baikal-0.6.0.zip source = baikal.install + source = Fixed-getcontenttype-being-null.patch::https://github.com/sabre-io/dav/commit/7badab41ca48b2705426907d533aca374ba6401f.patch sha1sums = 47398b00cad4330bfac9df8abc03df896e2d206f sha1sums = deb948e61c3cd8d6ad560321f78c0b288f7a6210 + sha1sums = 955a7957e013b6f643d53b5d6c648c52d42550b9 pkgname = baikal @@ -3,7 +3,7 @@ pkgname=baikal pkgver=0.6.0 -pkgrel=1 +pkgrel=2 pkgdesc='Lightweight CalDAV+CardDAV server' url='http://sabre.io/baikal/' arch=('any') @@ -11,14 +11,24 @@ 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') + 'baikal.install' + 'Fixed-getcontenttype-being-null.patch::https://github.com/sabre-io/dav/commit/7badab41ca48b2705426907d533aca374ba6401f.patch') sha1sums=('47398b00cad4330bfac9df8abc03df896e2d206f' - 'deb948e61c3cd8d6ad560321f78c0b288f7a6210') + 'deb948e61c3cd8d6ad560321f78c0b288f7a6210' + '955a7957e013b6f643d53b5d6c648c52d42550b9') options=('!strip') install=baikal.install +prepare() { + cd "${srcdir}/baikal/vendor/sabre/dav" + + # fix https://github.com/sabre-io/Baikal/issues/819 / https://github.com/sabre-io/dav/issues/1178 + patch -p1 -i "$srcdir/Fixed-getcontenttype-being-null.patch" +} + package() { cd "${srcdir}/baikal" + install -dm 755 "$pkgdir"/usr/share/{webapps,doc}"/$pkgname" install -dm 700 -o http -g http "$pkgdir/var/lib/$pkgname" cp -R Core html vendor "$pkgdir/usr/share/webapps/$pkgname" |