mirror of
https://github.com/archlinux/aur.git
synced 2026-03-14 23:16:48 +01:00
fix build
This commit is contained in:
parent
22da6b14ff
commit
036e544e01
1 changed files with 2 additions and 2 deletions
4
PKGBUILD
4
PKGBUILD
|
|
@ -16,8 +16,8 @@ sha256sums=('SKIP')
|
|||
|
||||
pkgver() {
|
||||
cd "$srcdir/$_pkgname"
|
||||
# Use the latest commit hash if no tags are available
|
||||
git describe --tags --long 2>/dev/null || echo "r$(git rev-list --count HEAD).g$(git rev-parse --short HEAD)"
|
||||
# Generate a valid version string by replacing invalid characters
|
||||
git describe --tags --long 2>/dev/null | sed 's/-/./g' || echo "r$(git rev-list --count HEAD).g$(git rev-parse --short HEAD)"
|
||||
}
|
||||
|
||||
build() {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue