nummi/PKGBUILD

40 lines
1.2 KiB
Text
Raw Normal View History

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: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 12:12:34 +02:00
)
2022-05-21 18:29:30 +02:00
md5sums=('SKIP'
'e584076aa2c41057634ed162ecf4a2b0'
'3c3caef26d924fb8f6bbce83743aaaac'
'0210532a05e4b99593236524715063e2'
'905cf1239a55c82a2fc60eceda71da6e')
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/
install -Dm644 ${pkgname%-git}.tmpfiles "${pkgdir}"/usr/lib/tmpfiles.d/${pkgname%-VCS}.conf
install -Dm644 ${pkgname%-git}.sysusers "${pkgdir}"/usr/lib/sysusers.d/${pkgname%-VCS}.conf
install -Dm644 ${pkgname%-git}.nginx "${pkgdir}"/etc/nginx/sites-enabled/${pkgname%-VCS}.conf
2022-05-21 15:59:21 +02:00
2022-05-21 18:29:30 +02:00
cd ${pkgname%-git}/${pkgname%-VCS}
find * -type f -exec install -Dm0644 "{}" "${pkgdir}/usr/share/webapps/${pkgname%-git}/{}" \;
2022-05-21 12:12:34 +02:00
}