summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlphaJack2020-09-02 16:04:31 +0200
committerAlphaJack2020-09-02 16:04:31 +0200
commitf6058c2d90ff154a40b0804b2e41255303b6d3f4 (patch)
tree2c8f73a4c42415ef23a044b2382cf166df7015b1
parent51686daa9b81a8cd52c2340919ea900feb05cee5 (diff)
downloadaur-f6058c2d90ff154a40b0804b2e41255303b6d3f4.tar.gz
Tidied PKGBUILD
-rw-r--r--PKGBUILD12
1 files changed, 4 insertions, 8 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 05abdb52af1..28cf3866ec4 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,10 +4,10 @@ pkgname="roundcubemail-plugin-carddav"
pkgver=4.0.0
pkgrel=1
pkgdesc="CardDAV plugin for RoundCube Webmailer"
-arch=("any")
-conflicts=("roundcube-rcmcarddav" "roundcube-rcmcarddav-git" "roundcubemail-plugin-carddav-git")
url="https://github.com/blind-coder/rcmcarddav"
license=("GPL2")
+arch=("any")
+conflicts=("roundcube-rcmcarddav" "roundcube-rcmcarddav-git" "roundcubemail-plugin-carddav-git")
depends=("roundcubemail")
makedepends=("composer")
source=("$url/releases/download/v$pkgver-alpha1/carddav-v$pkgver-alpha1.tgz")
@@ -17,13 +17,9 @@ 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"
+ 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"
ln -s "/etc/webapps/roundcubemail/plugins/carddav/config.inc.php" "$pkgdir/usr/share/webapps/roundcubemail/plugins/carddav/config.inc.php"
}