ayaports/user/firefly-iii/APKBUILD

68 lines
2 KiB
Text
Raw Normal View History

2021-11-30 21:44:44 +00:00
# Maintainer: Antoine Martin <dev@ayakael.net>
pkgname=firefly-iii
2022-01-02 03:53:55 +00:00
pkgver=5.6.8
pkgrel=3
2021-11-30 21:44:44 +00:00
pkgdesc='PHP personal finances manager'
pkgusers='firefly'
arch='noarch'
url="https://github.com/${pkgname}/${pkgname}"
license='custom'
options=!check
2022-01-02 03:53:55 +00:00
depends='
php8
php8-intl
php8-curl
php8-bcmath
php8-zip
php8-gd
php8-xml
php8-mbstring
php8-ldap
php8-session
php8-pdo_pgsql
php8-fileinfo
php8-simplexml
php8-sodium
php8-tokenizer
php8-xmlwriter
php8-dom
'
2021-11-30 21:44:44 +00:00
makedepends='composer'
source="$pkgname-$pkgver.tar.gz::https://github.com/${pkgname}/${pkgname}/archive/${pkgver}.tar.gz"
2022-01-02 03:53:55 +00:00
builddir="$srcdir/$pkgname-$pkgver"
2021-11-30 21:44:44 +00:00
2022-01-02 03:53:55 +00:00
prepare() {
composer install --no-scripts --no-dev
}
2021-11-30 21:44:44 +00:00
2022-01-02 03:53:55 +00:00
package() {
2021-11-30 21:44:44 +00:00
install -d "$pkgdir/usr/share/webapps/$pkgname" "$pkgdir/usr/share/licenses/$pkgname" "$pkgdir/etc/webapps/$pkgname"
cp -rv * "$pkgdir/usr/share/webapps/$pkgname"
install -D "$srcdir/$pkgname-$pkgver/LICENSE" "$pkgdir/usr/share/licenses/$pkgname"
cp -v .env.example "$pkgdir/etc/webapps/$pkgname/.env"
cp -v .deploy/*/.env* "$pkgdir/etc/webapps/$pkgname"
for i in '' '.heroku' ; do
mv -v "$pkgdir/etc/webapps/$pkgname/.env$i" "$pkgdir/etc/webapps/$pkgname/config.env$i"
done
ln -s "/etc/webapps/$pkgname/config.env" "$pkgdir/usr/share/webapps/$pkgname/.env"
rm -rf "$pkgdir/usr/share/webapps/$pkgname/bootstrap/cache"
mkdir -p "$pkgdir/var/cache/$pkgname"
chown firefly:www-data "$pkgdir/var/cache/$pkgname"
ln -s "/var/cache/$pkgname" "$pkgdir/usr/share/webapps/$pkgname/bootstrap/cache"
mkdir -p "$pkgdir/var/lib"
mv "$pkgdir/usr/share/webapps/$pkgname/storage" "$pkgdir/var/lib/firefly-iii"
chown -R firefly:www-data "$pkgdir/var/lib/firefly-iii"
chmod 775 "$pkgdir/var/lib/firefly-iii"
ln -s "/var/lib/firefly-iii" "$pkgdir/usr/share/webapps/$pkgname/storage"
}
# vim:ts=4:sw=4:expandtab
sha512sums="
2022-01-02 03:53:55 +00:00
e49e2847d021b4c75c92893ff96c0f1bf16d79e67ee717c7df4a36cc98bcf8af0d619b406fa9989a53c97aa1b04448c8b1e1e1c6455cc6e4d1a116ef53666df6 firefly-iii-5.6.8.tar.gz
2021-11-30 21:44:44 +00:00
"