Update pkgver to 0.0.0 and modify pkgver function to use git describe
Some checks failed
Build and push Archlinux package / build (push) Failing after 8s
Some checks failed
Build and push Archlinux package / build (push) Failing after 8s
This commit is contained in:
parent
6aca87dc42
commit
a4a5749fa7
1 changed files with 3 additions and 3 deletions
6
PKGBUILD
6
PKGBUILD
|
@ -1,6 +1,6 @@
|
||||||
# Maintainer: edpibu <contact@edgarpierre.fr>
|
# Maintainer: edpibu <contact@edgarpierre.fr>
|
||||||
pkgname=desktop-git
|
pkgname=desktop-git
|
||||||
pkgver=r1.e944fe9
|
pkgver=0.0.0
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="Edpibu's desktop entries"
|
pkgdesc="Edpibu's desktop entries"
|
||||||
arch=(any)
|
arch=(any)
|
||||||
|
@ -14,8 +14,8 @@ sha256sums=('SKIP')
|
||||||
source=("git+https://code.edgarpierre.fr/edpibu/desktop.git")
|
source=("git+https://code.edgarpierre.fr/edpibu/desktop.git")
|
||||||
|
|
||||||
pkgver() {
|
pkgver() {
|
||||||
cd "$srcdir/${pkgname%-git}"
|
cd "$pkgname"
|
||||||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
git describe --tags
|
||||||
}
|
}
|
||||||
package() {
|
package() {
|
||||||
cd "$srcdir/${pkgname%-git}"
|
cd "$srcdir/${pkgname%-git}"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue