Browse Source

add: grocy

master
chimo 2 years ago
parent
commit
ec124ec5fe
1 changed files with 56 additions and 0 deletions
  1. +56
    -0
      grocy/APKBUILD

+ 56
- 0
grocy/APKBUILD View File

@ -0,0 +1,56 @@
# Maintainer: Chimo <chimo@chromic.org>
#
# FIXME:
# - Run php-fpm pool as 'grocy' user and give it write permissons
# on the 'data' folder
#
# Note:
# - For whatever reason, looks like we needed to create the
# 'data/viewcache' directory manually (and set write perms)
#
# Optional deps:
# - nginx
# - php7-fpm
#
pkgname="grocy"
pkgver=2.5.2
_gitver="d994551f75e066b41c4833668e3747ba773487c9"
pkgrel=0
pkgdesc="ERP beyond your fridge - grocy is a web-based self-hosted groceries & household management solution for your home"
url="https://grocy.info/"
arch="noarch"
license="MIT"
depends="
php7
php7-fileinfo
php7-gd
php7-json
php7-mbstring
php7-pdo_sqlite
php7-simplexml
php7-tokenizer
"
makedepends="
composer
yarn
git
"
options="!check"
source="
$pkgname-$pkgver.tar.gz::https://github.com/grocy/grocy/archive/$_gitver.tar.gz
"
builddir="$srcdir/grocy-$_gitver"
build() {
cd "$builddir"
composer install
yarn install
}
package() {
installdir="$pkgdir/usr/share/webapps"
mkdir -p "$installdir"
cp -r "$builddir" "$installdir"/"$pkgname"
}
sha512sums="e117d6cd37c1b1d2062692d6c5840af4a6885793eb800502c53dbfc1d165d2e3b6d9052a517b48274520d4c430a9987b85375b8f5b109d13cfe8f466815acc9d grocy-2.5.2.tar.gz"

Loading…
Cancel
Save