summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authordadosch2019-12-23 01:17:16 +0100
committerdadosch2019-12-23 01:17:16 +0100
commit5d64fcaee50c2730871c77189e6fbde66c57562d (patch)
tree889663e6fb4bf59a3c67cb1fba8b570e0345d50d
downloadaur-5d64fcaee50c2730871c77189e6fbde66c57562d.tar.gz
initial pkgbuild for grocy
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD36
2 files changed, 53 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..054dcb9e7fe
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = grocy
+ pkgdesc = web-based self-hosted groceries & household management solution for your home
+ pkgver = 2.5.2
+ pkgrel = 1
+ url = https://grocy.info/
+ arch = any
+ license = MIT
+ depends = php
+ depends = php-sqlite
+ optdepends = apache: a supported application server
+ optdepends = nginx: a supported application server
+ backup = etc/webapps/grocy/config.php
+ source = https://github.com/grocy/grocy/releases/download/v2.5.2/grocy_2.5.2.zip
+ sha256sums = 0ed19000e0825788ec55f9b948d8990c412c38caaa8da59567b2b592868453b8
+
+pkgname = grocy
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..0d3d7d165e6
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,36 @@
+# Maintainer: danieltetraquark
+
+pkgname=grocy
+pkgver=2.5.2
+pkgrel=1
+pkgdesc="web-based self-hosted groceries & household management solution for your home"
+depends=('php' 'php-sqlite')
+license=('MIT')
+arch=('any')
+url="https://grocy.info/"
+source=(
+https://github.com/grocy/grocy/releases/download/v${pkgver}/grocy_${pkgver}.zip
+)
+sha256sums=('0ed19000e0825788ec55f9b948d8990c412c38caaa8da59567b2b592868453b8')
+
+optdepends=('apache: a supported application server'
+ 'nginx: a supported application server'
+)
+backup=('etc/webapps/grocy/config.php')
+
+package() {
+ _instdir="$pkgdir"/usr/share/webapps/grocy
+ mkdir -p "$_instdir" "$pkgdir"/etc/webapps/grocy
+
+
+ # install license
+ install -Dm644 "${srcdir}/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+
+ cp -ra "$srcdir"/. "$_instdir"/
+
+ cp "$srcdir"/config-dist.php "$pkgdir"/etc/webapps/grocy/config.php
+ ln -s /etc/webapps/grocy/config.php "$pkgdir"/usr/share/webapps/grocy/data/config.php
+
+ chown http "$pkgdir"/usr/share/webapps/grocy/data -R
+}
+