From 9c47ceeef79caa02c5ee810659d8f784676b3f71 Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Sun, 29 Jul 2018 14:08:27 +0200 Subject: Update build instructions --- linux/makepkg/PKGBUILD | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'linux') diff --git a/linux/makepkg/PKGBUILD b/linux/makepkg/PKGBUILD index ba8f893..e6973dd 100644 --- a/linux/makepkg/PKGBUILD +++ b/linux/makepkg/PKGBUILD @@ -28,15 +28,15 @@ validgpgkeys=(# Aqua-sama prepare() { cd smolbote - _tag=$(git describe --tags --abbrev=0) - _describe=$(git describe --tags) + _tag="r$(git rev-list --count HEAD)" + _describe="r$(git rev-list --count HEAD)-$(git rev-parse --short HEAD)" _commit=$(git rev-parse HEAD) _branch=$(git rev-parse --abbrev-ref HEAD) } pkgver() { cd smolbote - git describe --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' + echo $_describe | sed 's/\([^-]*-g\)/r\1/;s/-/./g' } build() { -- cgit v1.2.1