2022-05-21 18:25:08 +02:00
|
|
|
pkgname=nummi-git
|
2022-12-21 15:13:21 +01:00
|
|
|
pkgver=r151.ee26d0d
|
2022-05-21 18:25:08 +02:00
|
|
|
pkgrel=1
|
2022-05-21 12:12:34 +02:00
|
|
|
pkgdesc="Web-based accounting interface"
|
|
|
|
arch=("any")
|
|
|
|
url="https://git.edgarpierre.fr/edpibu/nummi"
|
2022-05-21 18:25:08 +02:00
|
|
|
license=('AGPL3')
|
2022-05-21 12:12:34 +02:00
|
|
|
depends=(
|
2022-05-21 12:13:52 +02:00
|
|
|
"gunicorn"
|
|
|
|
"python-django"
|
2022-12-20 17:00:42 +01:00
|
|
|
"python-matplotlib"
|
2022-12-29 18:14:55 +01:00
|
|
|
"python-toml"
|
2022-05-21 12:12:34 +02:00
|
|
|
)
|
2022-12-20 17:00:42 +01:00
|
|
|
makedepends=("git")
|
2022-05-21 12:12:34 +02:00
|
|
|
optdepends=("postgresql: database")
|
2022-05-21 18:59:53 +02:00
|
|
|
backup=("etc/${pkgname%-git}.env")
|
2022-05-21 12:12:34 +02:00
|
|
|
source=(
|
2022-12-29 17:45:56 +01:00
|
|
|
"${pkgname}::git+https://git.edgarpierre.fr/edpibu/nummi"
|
2022-05-21 18:29:30 +02:00
|
|
|
"${pkgname%-git}.service"
|
|
|
|
"${pkgname%-git}.tmpfiles"
|
|
|
|
"${pkgname%-git}.sysusers"
|
|
|
|
"${pkgname%-git}.nginx"
|
2022-12-29 17:45:56 +01:00
|
|
|
"config.toml"
|
2022-05-21 12:12:34 +02:00
|
|
|
)
|
2022-05-21 19:06:16 +02:00
|
|
|
b2sums=('SKIP'
|
|
|
|
'9e9b62a141bb4594dc203978d5c56dd397ed6c095e6f83fdea07ded2fa46dd2e052aa8f80729a3b612e3773aa487660fcca791079ad4885b825c9c831df61b45'
|
2022-12-21 15:13:21 +01:00
|
|
|
'cd42e864d82ca5ea191d2c15cec55afea272a875f19ebc1252e03fb86ef3d62820e2fedd706a8da0b0e3a7aee355e0bb5dcdb7f3bd803497c1320fab540f7d70'
|
|
|
|
'78bebc6cca3f8b520783565de9122cc57e62eb629d3693dfaa322a77f4be3c55c5cd5a460bd1f6f3028f4dd1b2018ec6166b7f9aaf55ac3be6178bd1a3a00405'
|
2022-12-21 14:48:55 +01:00
|
|
|
'c878c463ecb58d94b3f9b96d798b098a7718aec6df4b424a60674c0a9daf9abcb4556e527e55f67dbb093e109145b0ca17556f7dce66116ba7b170ead61acc16'
|
2022-05-21 19:06:16 +02:00
|
|
|
'5bdc097ab3fa7e8e128d194bfb6c0fefb5528903e2b8765557a82033f8925c1174dbe73007a595e32c5e415cf6f19957c35bbe463c50d2813894c20c8a28a88d')
|
2022-05-21 18:25:08 +02:00
|
|
|
|
|
|
|
pkgver() {
|
2022-05-21 18:54:18 +02:00
|
|
|
cd "$pkgname"
|
2022-05-21 18:25:08 +02:00
|
|
|
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
|
|
|
}
|
2022-05-21 12:12:34 +02:00
|
|
|
|
|
|
|
package() {
|
2022-05-21 18:29:30 +02:00
|
|
|
install -Dm644 ${pkgname%-git}.service -t "${pkgdir}"/usr/lib/systemd/system/
|
2022-05-21 18:30:11 +02:00
|
|
|
install -Dm644 ${pkgname%-git}.tmpfiles "${pkgdir}"/usr/lib/tmpfiles.d/${pkgname%-git}.conf
|
|
|
|
install -Dm644 ${pkgname%-git}.sysusers "${pkgdir}"/usr/lib/sysusers.d/${pkgname%-git}.conf
|
|
|
|
install -Dm644 ${pkgname%-git}.nginx "${pkgdir}"/etc/nginx/sites-enabled/${pkgname%-git}.conf
|
2022-12-29 18:19:22 +01:00
|
|
|
install -Dm750 -o nummi -g nummi config.toml -t "${pkgdir}"/etc/${pkgname%-git}/
|
2022-05-21 15:59:21 +02:00
|
|
|
|
2022-05-21 18:54:18 +02:00
|
|
|
cd ${pkgname}/${pkgname%-git}
|
2022-05-21 18:29:30 +02:00
|
|
|
find * -type f -exec install -Dm0644 "{}" "${pkgdir}/usr/share/webapps/${pkgname%-git}/{}" \;
|
2022-05-21 12:12:34 +02:00
|
|
|
}
|