Patch Baikal to fix issue with Thunderbird address book

See

* https://github.com/sabre-io/Baikal/issues/819
* https://github.com/sabre-io/dav/issues/1178
This commit is contained in:
Martchus 2019-09-30 14:08:55 +02:00
parent c352ab2c65
commit 246593f258
1 changed files with 13 additions and 3 deletions

View File

@ -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"