1# Maintainer: Gabriel Arakaki Giovanini <mail@gabrielgio.me>
2pkgname=firefly3
3pkgver=5.7.13
4pkgrel=0
5pkgdesc="A free and open source personal finance manager"
6url="https://firefly-iii.org"
7arch="noarch"
8license="AGPL-3.0-only"
9_php=php8
10_php_mods="-curl -zip -sodium -gd -xml -mbstring -bcmath -fileinfo -session
11 -tokenizer -xmlwriter -dom -shmop"
12depends="$_php ${_php_mods//-/$_php-}"
13_php_makemods="-intl -pdo -simplexml"
14makedepends="$_php ${_php_makemods//-/$_php-} composer"
15source="${pkgname}-${pkgver}.tar.gz::https://github.com/firefly-iii/firefly-iii/archive/refs/tags/$pkgver.tar.gz"
16options="!check" # no clue how to run test on this
17builddir="$srcdir/firefly-iii-$pkgver/"
18
19package() {
20 local wwwdir="usr/share/webapps/$pkgname"
21
22 mkdir -p "$pkgdir"
23 cd "$pkgdir"
24
25 mkdir -p ./${wwwdir%/*}
26 cp -a "$builddir" ./$wwwdir
27
28 chmod +x ./$wwwdir/artisan
29
30 cd "$wwwdir" && composer install --prefer-dist --no-dev --no-scripts
31
32}
33sha512sums="
34a59f89305eeb6cdb301ca86a6a3dfacd90497ce887b59b7c426bef341e7a070efc0d430c6e40277273e5aa56b86271c652f80e696cc53f0788b0624dd1b66a46 firefly3-5.7.13.tar.gz
35"