summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorAlphaJack2020-08-30 23:47:28 +0200
committerAlphaJack2020-08-30 23:47:28 +0200
commit65599c0af49087a4c7242a0e6217bb2d0b86540a (patch)
tree4d8176799cf32b2ae602f9e27adc2f9d48c6116c /PKGBUILD
downloadaur-65599c0af49087a4c7242a0e6217bb2d0b86540a.tar.gz
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD29
1 files changed, 29 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..7f020bf4bb2
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,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"
+}