# Maintainer: AlphaJack pkgname="roundcubemail-plugin-carddav" pkgver=4.4.0 pkgrel=1 pkgdesc="CardDAV plugin for RoundCube Webmailer" url="https://github.com/mstilkerich/rcmcarddav" license=("GPL2") arch=("any") conflicts=("roundcube-rcmcarddav" "roundcube-rcmcarddav-git" "roundcubemail-plugin-carddav-git") replaces=("roundcube-rcmcarddav") # until roundcubemail 1.6 is available from official repos depends=("roundcubemail<1.6") makedepends=("composer" "systemd") #source=("$url/releases/download/v$pkgver/carddav-v$pkgver.tar.gz") source=("https://github.com/mstilkerich/rcmcarddav/releases/download/v4.4.0/carddav-v4.4.0-roundcube15.tar.gz") sha256sums=('a247f573eafbcd6a2af171f87874b3097e1f62a742a4446ab150226353d1ec83') backup=("etc/webapps/roundcubemail/plugins/carddav/config.inc.php") options=("!strip") build(){ cd "carddav" composer install --no-interaction --no-dev } package(){ cd "carddav" install -d "$pkgdir/usr/share/webapps/roundcubemail/plugins/carddav" cp -r * "$pkgdir/usr/share/webapps/roundcubemail/plugins/carddav" install -D -m 640 -o root -g http "config.inc.php.dist" "$pkgdir/etc/webapps/roundcubemail/plugins/carddav/config.inc.php" ln -s "/etc/webapps/roundcubemail/plugins/carddav/config.inc.php" "$pkgdir/usr/share/webapps/roundcubemail/plugins/carddav/config.inc.php" }