summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorLlewelyn Trahaearn2019-01-21 13:27:00 -0800
committerLlewelyn Trahaearn2019-01-21 13:27:00 -0800
commit01d82de24a1be0128d385523f29b8018b976c8d2 (patch)
tree6ee36ecdb3f073d5025997262c612713bdc60536
parenta213f2933a9ec9ce7dbce28ff963b88c1d9caf14 (diff)
downloadaur-01d82de24a1be0128d385523f29b8018b976c8d2.tar.gz
Trim down pkgver()
-rw-r--r--PKGBUILD7
1 files changed, 2 insertions, 5 deletions
diff --git a/PKGBUILD b/PKGBUILD
index e6fa69ddd8b..39652a8cf74 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -83,16 +83,13 @@ prepare() {
pkgver() {
cd grub
- ( set -o pipefail
- git describe --long --tags 2>/dev/null | sed 's/^grub.//;s/\([^-]*-g\)/r\1/;s/-/./g' ||
- printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
- )
+ git describe --long --tags | sed 's/^grub.//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd grub
export GRUB_CONTRIB="$srcdir"/grub-extras
- ./autogen.sh
+ ./autogen.sh
# Undefined references to __stack_chk_fail
CFLAGS=${CFLAGS/-fstack-protector-strong}