summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7f020bf4bb2ccec2fa25719fc36f49ed6ba72f6a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Maintainer: AlphaJack <alphajack at tuta dot io>

pkgname="roundcubemail-plugin-carddav"
pkgver=4.0.0
pkgrel=1
pkgdesc="CardDAV plugin for RoundCube Webmailer"
arch=("any")
conflicts=("roundcube-rcmcarddav" "roundcube-rcmcarddav-git")
url="https://github.com/blind-coder/rcmcarddav"
license=("GPL2")
depends=("roundcubemail")
makedepends=("composer")
source=("$url/releases/download/v$pkgver-alpha1/carddav-v$pkgver-alpha1.tgz")
md5sums=("525688b0e165821bc1843ac5be7628c6")
backup=("etc/webapps/roundcubemail/plugins/carddav/config.inc.php")

package() {
 cd "$srcdir/carddav"
 composer install --no-interaction --no-dev

 install -d "$pkgdir/usr/share/licenses/$pkgname"
 install -D "LICENSE" "$pkgdir/usr/share/licenses/$pkgname"

 install -d "$pkgdir/usr/share/webapps/roundcubemail/plugins/carddav"
 cp -r * "$pkgdir/usr/share/webapps/roundcubemail/plugins/carddav"

 install -Dm644 "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"
}