Fix pkgver

This commit is contained in:
Edgar P. Burkhart 2022-05-21 18:54:18 +02:00
parent 2ccacd0d21
commit 6d4947bcca
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227

View file

@ -1,5 +1,5 @@
pkgname=nummi-git
pkgver=r51.589f9a9
pkgver=r42.ccc7ef1
pkgrel=1
pkgdesc="Web-based accounting interface"
arch=("any")
@ -12,7 +12,7 @@ depends=(
makedepends=('git')
optdepends=("postgresql: database")
source=(
"${pkgname%-git}::git+ssh://gitea@git.edgarpierre.fr:39529/edpibu/nummi.git"
"${pkgname}::git+ssh://gitea@git.edgarpierre.fr:39529/edpibu/nummi.git"
"${pkgname%-git}.service"
"${pkgname%-git}.tmpfiles"
"${pkgname%-git}.sysusers"
@ -27,6 +27,7 @@ md5sums=('SKIP'
'ba911f184d52707732850cd7fb224849')
pkgver() {
cd "$pkgname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
@ -37,6 +38,6 @@ package() {
install -Dm644 ${pkgname%-git}.nginx "${pkgdir}"/etc/nginx/sites-enabled/${pkgname%-git}.conf
install -D ${pkgname%-git}.env -t "${pkgdir}"/etc/
cd ${pkgname%-git}/${pkgname%-git}
cd ${pkgname}/${pkgname%-git}
find * -type f -exec install -Dm0644 "{}" "${pkgdir}/usr/share/webapps/${pkgname%-git}/{}" \;
}