summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD16
1 files changed, 13 insertions, 3 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 05203f341fc..80578e2bfa4 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -8,19 +8,29 @@ url="https://github.com/blind-coder/rcmcarddav"
license=("GPL2")
arch=("any")
conflicts=("roundcube-rcmcarddav" "roundcube-rcmcarddav-git" "roundcubemail-plugin-carddav-git")
-depends=("roundcubemail")
+replaces=("roundcube-rcmcarddav")
+#depends=("roundcubemail")
makedepends=("composer")
source=("$url/releases/download/v$pkgver/carddav-v$pkgver.tgz")
md5sums=("e1b801837689eb18a1703265ee07ac91")
backup=("etc/webapps/roundcubemail/plugins/carddav/config.inc.php")
-package() {
+prepare(){
cd "carddav"
+ # Waiting for https://github.com/blind-coder/rcmcarddav/pull/312 to be released
sed -i 's|"dealerdirect/phpcodesniffer-composer-installer": "^0.6.0"|"dealerdirect/phpcodesniffer-composer-installer": "^0.7.0"|' "composer.json"
+}
+
+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 644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname"
- install -D -o root -g http -m 640 "config.inc.php.dist" "$pkgdir/etc/webapps/roundcubemail/plugins/carddav/config.inc.php"
+ 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"
}