ayaports/user/firefly-iii/APKBUILD

53 lines
1.7 KiB
Text
Raw Normal View History

2023-01-10 19:15:14 +00:00
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
2021-11-30 21:44:44 +00:00
pkgname=firefly-iii
2023-01-11 13:23:51 +00:00
pkgver=5.7.18
2023-01-10 19:15:14 +00:00
pkgrel=0
pkgdesc="PHP personal finances manager"
arch="noarch"
url="https://github.com/firefly-iii/firefly-iii"
license="AGPL-3.0-only"
options="!check" # No testsuite
_php=php81
_php_mods="-intl -curl -bcmath -zip -gd -xml -mbstring -ldap -session -fileinfo -simplexml -sodium -tokenizer -xmlwriter -dom -pdo"
depends="$_php ${_php_mods//-/$_php-}"
makedepends="composer"
source="$pkgname-$pkgver.tar.gz::https://github.com/firefly-iii/firefly-iii/archive/$pkgver.tar.gz"
pkgusers="firefly"
pkggroups="www-data"
2021-11-30 21:44:44 +00:00
2022-01-02 03:53:55 +00:00
prepare() {
2023-01-10 19:15:14 +00:00
default_prepare
composer install --no-scripts --no-dev
2022-01-02 03:53:55 +00:00
}
2021-11-30 21:44:44 +00:00
2022-01-02 03:53:55 +00:00
package() {
2023-01-10 19:15:14 +00:00
local datadir="/var/lib/$pkgname"
local cachedir="/var/cache/$pkgname"
local wwwdir="/usr/share/webapps/$pkgname"
local confdir="/etc/$pkgname"
2021-11-30 21:44:44 +00:00
2023-01-10 19:15:14 +00:00
install -dm 755 "$pkgdir"/$datadir "$pkgdir"/$wwwdir "$pkgdir"/$confdir "$pkgdir"/$cachedir
2021-11-30 21:44:44 +00:00
2023-01-10 19:15:14 +00:00
cp -rv "$builddir"/. "$pkgdir"/$wwwdir//
2021-11-30 21:44:44 +00:00
2023-01-10 19:15:14 +00:00
cp -v "$pkgdir"/$wwwdir/.env.example "$pkgdir"/$confdir/.env
cp -v "$pkgdir"/$wwwdir/.deploy/*/.env* "$pkgdir"/$confdir
for i in '' '.heroku' ; do
mv -v "$pkgdir"/$confdir/.env$i "$pkgdir"/$confdir/config.env$i
done
2021-11-30 21:44:44 +00:00
2023-01-10 19:15:14 +00:00
mv "$pkgdir"/$wwwdir/storage/* "$pkgdir"/$datadir
rm -rf $pkgdir/$wwwdir/storage
rm -rf "$pkgdir"/$wwwdir/bootstrap/cache
2021-11-30 21:44:44 +00:00
2023-01-10 19:15:14 +00:00
ln -s $confdir/config.env "$pkgdir"/$wwwdir/.env
ln -s $cachedir "$pkgdir"/$wwwdir/bootstrap/cache
ln -s $datadir "$pkgdir"/usr/share/webapps/$pkgname/storage
2021-11-30 21:44:44 +00:00
}
sha512sums="
2023-01-11 13:23:51 +00:00
4febc482056d1c635fb674b001442dcaa6d331ce3906aeeac80497b42b38fa1e2393e6b2a0d76da884db15d000c4364d299a11e4d28b2b6ebdeba8fae638a413 firefly-iii-5.7.18.tar.gz
2021-11-30 21:44:44 +00:00
"