2022-05-21 18:25:08 +02:00
|
|
|
pkgname=nummi-git
|
2022-05-21 18:44:46 +02:00
|
|
|
pkgver=r51.589f9a9
|
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-05-21 12:12:34 +02:00
|
|
|
)
|
2022-05-21 18:25:08 +02:00
|
|
|
makedepends=('git')
|
2022-05-21 12:12:34 +02:00
|
|
|
optdepends=("postgresql: database")
|
|
|
|
source=(
|
2022-05-21 18:29:30 +02:00
|
|
|
"${pkgname%-git}::git+ssh://gitea@git.edgarpierre.fr:39529/edpibu/nummi.git"
|
|
|
|
"${pkgname%-git}.service"
|
|
|
|
"${pkgname%-git}.tmpfiles"
|
|
|
|
"${pkgname%-git}.sysusers"
|
|
|
|
"${pkgname%-git}.nginx"
|
2022-05-21 18:44:46 +02:00
|
|
|
"${pkgname%-git}.env"
|
2022-05-21 12:12:34 +02:00
|
|
|
)
|
2022-05-21 18:29:30 +02:00
|
|
|
md5sums=('SKIP'
|
2022-05-21 18:45:13 +02:00
|
|
|
'd087cb0d37ba7570001affcfeab5b31c'
|
2022-05-21 18:29:30 +02:00
|
|
|
'3c3caef26d924fb8f6bbce83743aaaac'
|
|
|
|
'0210532a05e4b99593236524715063e2'
|
2022-05-21 18:45:13 +02:00
|
|
|
'905cf1239a55c82a2fc60eceda71da6e'
|
|
|
|
'ba911f184d52707732850cd7fb224849')
|
2022-05-21 18:25:08 +02:00
|
|
|
|
|
|
|
pkgver() {
|
|
|
|
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-05-21 18:44:46 +02:00
|
|
|
install -D ${pkgname%-git}.env -t "${pkgdir}"/etc/
|
2022-05-21 15:59:21 +02:00
|
|
|
|
2022-05-21 18:30:11 +02:00
|
|
|
cd ${pkgname%-git}/${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
|
|
|
}
|