Fix pkgver
This commit is contained in:
parent
2ccacd0d21
commit
6d4947bcca
1 changed files with 4 additions and 3 deletions
7
PKGBUILD
7
PKGBUILD
|
@ -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}/{}" \;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue