diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-07-29 14:08:27 +0200 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-07-29 14:08:27 +0200 |
commit | 9c47ceeef79caa02c5ee810659d8f784676b3f71 (patch) | |
tree | 97282bbdc20b844cd7ca63cdb82af67ba1dc5098 /linux/makepkg/PKGBUILD | |
parent | UrlRequestInterceptor: add filter rules (diff) | |
download | smolbote-9c47ceeef79caa02c5ee810659d8f784676b3f71.tar.xz |
Update build instructions
Diffstat (limited to 'linux/makepkg/PKGBUILD')
-rw-r--r-- | linux/makepkg/PKGBUILD | 6 |
1 files changed, 3 insertions, 3 deletions
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 <aqua@iserlohn-fortress.net> 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() { |