# Maintainer: leso-kn pkgname=baikal pkgver=0.9.3 pkgrel=0 pkgdesc="Baïkal is a Calendar+Contacts server" url="https://sabre.io/baikal" arch="noarch" license="GPL-3.0-only" makedepends=" composer rsync " _phpv=81 _php=php$_phpv depends=" $_php-dom $_php-openssl $_php-pdo $_php-session $_php-simplexml $_php-tokenizer $_php-xmlreader $_php-xmlwriter " subpackages=" ${pkgname}_sqlite:_sqlite " install="${pkgname}_sqlite.post-install" source="$pkgname-$pkgver.tar.gz::https://github.com/sabre-io/baikal/archive/refs/tags/$pkgver.tar.gz" builddir="$srcdir"/Baikal-$pkgver _grp_www="www-data" build() { mkdir -p .skip # mock the zip-command to prevent make from creating a dist-zip after building baikal echo "#!/bin/sh" > .skip/zip chmod +x .skip/zip PATH="$PWD/.skip:$PATH" \ make } check() { composer remove --dev friendsofphp/php-cs-fixer sed -i '5i\ini_set("memory_limit", "512M");\' vendor/phpstan/phpstan/phpstan composer phpstan } package() { mkdir -p "$pkgdir"/var/www cp -r "$builddir"/build/baikal "$pkgdir"/var/www/ ln -s html "$pkgdir"/var/www/baikal/htm chgrp $_grp_www "$pkgdir"/var/www/baikal/config chgrp $_grp_www "$pkgdir"/var/www/baikal/Specific/db } _sqlite() { depends="$pkgname $_php-pdo_sqlite" pkgdesc="$pkgdesc (sqlite3 backend)" mkdir -p "$subpkgdir" } sha512sums=" 5ff0efc844f0666c029ac7b512230f0b1a789774b8d2fb3d95d159e661fbde8d47acb7b93545a17bcb538a807eb1226e127e8429e90bf155c89830abdd1ce10e baikal-0.9.3.tar.gz "