2022-05-21 18:25:08 +02:00
|
|
|
pkgname=nummi-git
|
2022-05-21 12:12:34 +02:00
|
|
|
pkgver=0.1.0
|
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:25:08 +02:00
|
|
|
'${pkgname}::git+ssh://gitea@git.edgarpierre.fr:39529/edpibu/nummi.git'
|
|
|
|
'${pkgname}.service'
|
|
|
|
'${pkgname}.tmpfiles'
|
|
|
|
'${pkgname}.sysusers'
|
|
|
|
'${pkgname}.nginx'
|
2022-05-21 12:12:34 +02:00
|
|
|
)
|
2022-05-21 18:25:08 +02:00
|
|
|
md5sums=('SKIP')
|
|
|
|
|
|
|
|
pkgver() {
|
|
|
|
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
|
|
|
}
|
2022-05-21 12:12:34 +02:00
|
|
|
|
|
|
|
package() {
|
|
|
|
install -Dm644 ${pkgname}.service -t "${pkgdir}"/usr/lib/systemd/system/
|
|
|
|
install -Dm644 ${pkgname}.tmpfiles "${pkgdir}"/usr/lib/tmpfiles.d/${pkgname}.conf
|
|
|
|
install -Dm644 ${pkgname}.sysusers "${pkgdir}"/usr/lib/sysusers.d/${pkgname}.conf
|
2022-05-21 15:59:21 +02:00
|
|
|
install -Dm644 ${pkgname}.nginx "${pkgdir}"/etc/nginx/sites-enabled/${pkgname}.conf
|
|
|
|
|
|
|
|
cd ${pkgname}/${pkgname}
|
|
|
|
find * -type f -exec install -Dm0644 "{}" "${pkgdir}/usr/share/webapps/${pkgname}/{}" \;
|
2022-05-21 12:12:34 +02:00
|
|
|
}
|