67 lines
2 KiB
Text
67 lines
2 KiB
Text
# Maintainer: Antoine Martin <dev@ayakael.net>
|
|
pkgname=firefly-iii
|
|
pkgver=5.6.8
|
|
pkgrel=3
|
|
pkgdesc='PHP personal finances manager'
|
|
pkgusers='firefly'
|
|
arch='noarch'
|
|
url="https://github.com/${pkgname}/${pkgname}"
|
|
license='custom'
|
|
options=!check
|
|
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
|
|
'
|
|
makedepends='composer'
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/${pkgname}/${pkgname}/archive/${pkgver}.tar.gz"
|
|
builddir="$srcdir/$pkgname-$pkgver"
|
|
|
|
prepare() {
|
|
composer install --no-scripts --no-dev
|
|
}
|
|
|
|
package() {
|
|
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="
|
|
e49e2847d021b4c75c92893ff96c0f1bf16d79e67ee717c7df4a36cc98bcf8af0d619b406fa9989a53c97aa1b04448c8b1e1e1c6455cc6e4d1a116ef53666df6 firefly-iii-5.6.8.tar.gz
|
|
"
|