aboutsummaryrefslogtreecommitdiff
path: root/apks
diff options
context:
space:
mode:
authorGabriel Arakaki Giovanini <mail@gabrielgio.me>2024-01-01 16:44:50 +0100
committerGabriel Arakaki Giovanini <mail@gabrielgio.me>2024-01-01 16:52:39 +0100
commit5375d409755db9d64f350656f9987164db04f047 (patch)
tree6ca03c571be676bc1b0babd6f35b931146504d8c /apks
parentbb43ffe016b1d6df34f5b77bb04c27a89b537ef4 (diff)
downloadapkbuilds-5375d409755db9d64f350656f9987164db04f047.tar.gz
apkbuilds-5375d409755db9d64f350656f9987164db04f047.tar.bz2
apkbuilds-5375d409755db9d64f350656f9987164db04f047.zip
feat: Add meta package for nextcloud
It will help me to keep some configuration versioned.
Diffstat (limited to 'apks')
-rw-r--r--apks/nextcloud-ext/APKBUILD37
-rwxr-xr-xapks/nextcloud-ext/nextcloud-ext.cron6
2 files changed, 43 insertions, 0 deletions
diff --git a/apks/nextcloud-ext/APKBUILD b/apks/nextcloud-ext/APKBUILD
new file mode 100644
index 0000000..2c99821
--- /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 0000000..a989082
--- /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