apkbuilds @ 5375d409755db9d64f350656f9987164db04f047

feat: Add meta package for nextcloud

It will help me to keep some configuration versioned.
diff --git a/apks/nextcloud-ext/APKBUILD b/apks/nextcloud-ext/APKBUILD
new file mode 100644
index 0000000000000000000000000000000000000000..2c998212a06bae8d8a65afbf6d2a66a579c06e0a
--- /dev/null
+++ b/apks/nextcloud-ext/APKBUILD
@@ -0,0 +1,37 @@
+# Maintainer: Gabriel A. Giovanini <mail@gabriegio.me>
+pkgname=nextcloud-ext
+pkgver=0.0.1
+pkgrel=1
+pkgdesc="Meta package for maintaining nextcloud"
+url="https://git.sr.ht/~gabrielgio/apkbuilds"
+arch="noarch"
+license="MIT"
+options="!check" # this can't be tested
+depends="
+    nextcloud
+    nextcloud-files_external
+    nextcloud-files_pdfviewer
+    nextcloud-files_rightclick
+    nextcloud-files_sharing
+    nextcloud-files_trashbin
+    nextcloud-files_versions
+    nextcloud-files_videoplayer
+    nextcloud-initscript
+    nextcloud-pgsql
+    nextcloud-photos
+    nextcloud-sharebymail
+    nextcloud-text
+    nextcloud-user_status
+    nextcloud-weather_status
+    ffmpeg
+"
+source="$pkgname.cron"
+builddir="$srcdir"/$pkgname
+
+package() {
+    mkdir -p "$pkgdir"
+    install -m 755 -D "$srcdir"/$pkgname.cron "$pkgdir"/etc/periodic/15min/$pkgname
+}
+sha512sums="
+66b1609a3b4d8e398a37f7bda117b0b0a661d32c9484202758c0c21b18560f46bded9b17a3b4ec4931a26dd2b02a20fe5be1f06c3420da69ea952a6aa712ff5c  nextcloud-ext.cron
+"
diff --git a/apks/nextcloud-ext/nextcloud-ext.cron b/apks/nextcloud-ext/nextcloud-ext.cron
new file mode 100755
index 0000000000000000000000000000000000000000..a989082419ca317617554c0b8631f3c5b4f010ad
--- /dev/null
+++ b/apks/nextcloud-ext/nextcloud-ext.cron
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+# Run only when nextcloud service is started.
+if rc-service nextcloud -q status >/dev/null 2>&1; then
+	su nextcloud -s /bin/sh -c 'occ preview:pre-generate'
+fi