blob: 37721339986d463a3e363bdafcab996079816436 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
|
# Maintainer: Gabriel Arakaki Giovanini <mail@gabrielgio.me>
pkgname=firefly3
pkgver=5.7.13
pkgrel=0
pkgdesc="A free and open source personal finance manager"
url="https://firefly-iii.org"
arch="noarch"
license="AGPL-3.0-only"
_php=php8
_php_mods="
-curl
-zip
-sodium
-gd
-xml
-mbstring
-bcmath
-fileinfo
-session
-tokenizer
-xmlwriter
-dom
-shmop
"
depends="$_php ${_php_mods//-/$_php-}"
_php_makemods="
-intl
-pdo
-simplexml
"
makedepends="$_php ${_php_makemods//-/$_php-} composer"
subpackages="
$pkgname-nginx:_nginx:noarch
$pkgname-mysql:_mysql
$pkgname-psql:_psql
$pkgname-sqlite:_sqlite
"
install="$pkgname.post-install"
source="
${pkgname}-${pkgver}.tar.gz::https://github.com/firefly-iii/firefly-iii/archive/refs/tags/$pkgver.tar.gz
firefly.nginx.conf
"
options="!check" # no clue how to run test on this
builddir="$srcdir/firefly-iii-$pkgver/"
package() {
local wwwdir="usr/share/webapps/$pkgname"
mkdir -p "$pkgdir"
cd "$pkgdir"
mkdir -p ./${wwwdir%/*}
cp -a "$builddir" ./$wwwdir
chmod +x ./$wwwdir/artisan
cd "$wwwdir" && composer install --prefer-dist --no-dev --no-scripts
}
_mysql() {
depends="firefly3 php8-pdo_mysql"
pkgdesc="Mysql dependencies for $pkgname"
mkdir -p "$subpkgdir"/usr
}
_psql() {
depends=" firefly3 php8-pdo_pgsql php8-pgsql"
pkgdesc="Postgresql dependencies for $pkgname"
mkdir -p "$subpkgdir"/usr
}
_sqlite() {
depends="firefly3 php8-pdo_sqlite"
pkgdesc="Sqlite dependencies for $pkgname"
mkdir -p "$subpkgdir"/usr
}
_nginx() {
depends="firefly3"
pkgdesc="nginx configuration for $pkgname"
install -Dm644 "$srcdir/firefly.nginx.conf" \
"$subpkgdir"/etc/nginx/http.d/firefly.conf
}
sha512sums="
a59f89305eeb6cdb301ca86a6a3dfacd90497ce887b59b7c426bef341e7a070efc0d430c6e40277273e5aa56b86271c652f80e696cc53f0788b0624dd1b66a46 firefly3-5.7.13.tar.gz
9d32e8e8bd805b09cd429eacc42fe9e746570cdc867531ac47a0b31801378e5e0fc357ef88e8d5c14617ba1887a3789a9d2f7150111b497377380df7ccdd08a7 firefly.nginx.conf
"
|