diff --git a/PKGBUILD b/PKGBUILD index 88c5ca5..13e05ad 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,24 +1,28 @@ -pkgname=nummi +pkgname=nummi-git pkgver=0.1.0 -pkgrel=10 +pkgrel=1 pkgdesc="Web-based accounting interface" arch=("any") url="https://git.edgarpierre.fr/edpibu/nummi" -license=("AGPL3") +license=('AGPL3') depends=( "gunicorn" "python-django" ) +makedepends=('git') optdepends=("postgresql: database") -sha256sums=("SKIP") - source=( - "${pkgname}::git+ssh://gitea@git.edgarpierre.fr:39529/edpibu/nummi.git" - "${pkgname}.service" - "${pkgname}.tmpfiles" - "${pkgname}.sysusers" - "${pkgname}.nginx" + '${pkgname}::git+ssh://gitea@git.edgarpierre.fr:39529/edpibu/nummi.git' + '${pkgname}.service' + '${pkgname}.tmpfiles' + '${pkgname}.sysusers' + '${pkgname}.nginx' ) +md5sums=('SKIP') + +pkgver() { + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} package() { install -Dm644 ${pkgname}.service -t "${pkgdir}"/usr/lib/systemd/system/