[arch-commits] Commit in nextcloud/trunk (PKGBUILD nextcloud.hook)

Sergej Pupykin spupykin at archlinux.org
Thu Sep 14 09:44:07 UTC 2017


    Date: Thursday, September 14, 2017 @ 09:44:07
  Author: spupykin
Revision: 257515

add nextcloud.hook

Added:
  nextcloud/trunk/nextcloud.hook
Modified:
  nextcloud/trunk/PKGBUILD

----------------+
 PKGBUILD       |    8 ++++++--
 nextcloud.hook |   13 +++++++++++++
 2 files changed, 19 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-09-14 09:43:36 UTC (rev 257514)
+++ PKGBUILD	2017-09-14 09:44:07 UTC (rev 257515)
@@ -25,10 +25,12 @@
 backup=('etc/webapps/nextcloud/apache.example.conf')
 validpgpkeys=('28806A878AE423A28372792ED75899B9A724937A')
 source=("https://download.nextcloud.com/server/releases/nextcloud-${pkgver}.tar.bz2"{,.asc}
-        'apache.example.conf')
+        'apache.example.conf'
+        'nextcloud.hook')
 sha256sums=('eb34d6cb9f55ee84bf2ad847b4b08cdb925321848ffa2264a9b1566e7b21a17c'
             'SKIP'
-            '55b892adb86a67c2fa12d79f0980c6aea75aed5c6f6f78f2c2b5e5575a012067')
+            '55b892adb86a67c2fa12d79f0980c6aea75aed5c6f6f78f2c2b5e5575a012067'
+            '722af10afaacc6c2e99a3bd19d4e4d52b5fdf8fd299d21007d79c7bd2b728430')
 
 package() {
     # install project
@@ -50,4 +52,6 @@
     find "$pkgdir"/usr/share/webapps/${pkgname} -type d -exec chmod 0755 {} \;
 
     chmod a+x "$pkgdir"/usr/share/webapps/${pkgname}/occ
+
+    install -Dm0644 "$srcdir"/nextcloud.hook "$pkgdir"/usr/share/libalpm/hooks/nextcloud.hook
 }

Added: nextcloud.hook
===================================================================
--- nextcloud.hook	                        (rev 0)
+++ nextcloud.hook	2017-09-14 09:44:07 UTC (rev 257515)
@@ -0,0 +1,13 @@
+# Update Nextcloud when core or -apps are touched
+
+[Trigger]
+Operation = Install
+Operation = Upgrade
+Type = Package
+Target = nextcloud
+Target = nextcloud-app-*
+
+[Action]
+Description = Updating Nextcloud installation
+When = PostTransaction
+Exec = 'sudo -u http /usr/bin/php /usr/share/webapps/nextcloud/occ upgrade'



More information about the arch-commits mailing list