summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authordadosch2021-01-11 01:16:54 +0100
committerdadosch2021-01-11 01:16:54 +0100
commitd7842c88406711745cd06b31cc7edc7ddc9278d8 (patch)
treee941ddfe8366f14a9f3aedbe5c1f1aef8d75a6d0
parent4c91ae0a3fb505ff6b8c99a104c21cfd941a0587 (diff)
downloadaur-d7842c88406711745cd06b31cc7edc7ddc9278d8.tar.gz
fix symlinks. Please note upgrade notice at aur page
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD14
2 files changed, 10 insertions, 6 deletions
diff --git a/.SRCINFO b/.SRCINFO
index b7c1129a4bb..550a7242df1 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = grocy
pkgdesc = web-based self-hosted groceries & household management solution for your home
pkgver = 3.0.1
- pkgrel = 1
+ pkgrel = 2
url = https://grocy.info/
arch = any
license = MIT
diff --git a/PKGBUILD b/PKGBUILD
index 92041330c91..f04cac9d165 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
pkgname=grocy
pkgver=3.0.1
-pkgrel=1
+pkgrel=2
pkgdesc="web-based self-hosted groceries & household management solution for your home"
depends=('php' 'php-sqlite' 'php-gd')
makedepends=('composer' 'yarn')
@@ -19,8 +19,6 @@ backup=('etc/webapps/grocy/config.php')
build() {
cd grocy-${pkgver}
- mkdir data/viewcache
-
# composer need to have php-gd extension enabled, otherwise it will fail for a dependency of grocy.
php -n -dextension=gd.so /usr/bin/composer install --no-interaction --no-dev --optimize-autoloader
composer clear-cache
@@ -33,7 +31,7 @@ package() {
cd grocy-${pkgver}
_instdir="$pkgdir"/usr/share/webapps/grocy
- mkdir -p "$_instdir" "$pkgdir"/etc/webapps/grocy
+ mkdir -p "$_instdir" "$pkgdir"/etc/webapps/grocy "$pkgdir"/var/lib/webapps
# install license
@@ -42,8 +40,14 @@ package() {
# copy files to install directory
cp -ra . "$_instdir"/
+ mv "$pkgdir"/usr/share/webapps/grocy/data "$pkgdir"/var/lib/webapps/grocy
+
+# mkdir "$pkgdir"/usr/share/webapps/grocy/data/
+ ln -s /var/lib/webapps/grocy "$pkgdir"/usr/share/webapps/grocy/data
+
+ ln -s /etc/webapps/grocy/config.php "$pkgdir"/var/lib/webapps/grocy/config.php
+
mv 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 33 "$pkgdir"/usr/share/webapps/grocy/data -R
}