summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorGelatinousSlime2018-08-19 12:37:31 -0400
committerGelatinousSlime2018-08-19 12:37:31 -0400
commit962431bc4b6ac01a73e43ce29131d8b7105fb86d (patch)
tree961ed4f47bf60f6038640eec10ab7f16273e49e4 /PKGBUILD
parent86c8fc8a41c349b54c508e2735dbf053333cffcb (diff)
downloadaur-962431bc4b6ac01a73e43ce29131d8b7105fb86d.tar.gz
tweak version number generation
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD5
1 files changed, 2 insertions, 3 deletions
diff --git a/PKGBUILD b/PKGBUILD
index fd22b819092..664a12473d1 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
# Contributor: Jason Lenz <Jason@Lenzplace.org>
_pkgname=sleepyhead
pkgname=$_pkgname-git
-pkgver=1.1.0.8e6968fb6
+pkgver=1.1.0.8e6968fb
pkgrel=1
pkgdesc="Open-source, cross platform, sleep tracking software with a focus on monitoring CPAP treatment."
arch=('i686' 'x86_64')
@@ -28,9 +28,8 @@ pkgver() {
_major=$(sed -rn 's/.*major_version = ([0-9]+).*/\1/p' < sleepyhead/version.h)
_minor=$(sed -rn 's/.*minor_version = ([0-9]+).*/\1/p' < sleepyhead/version.h)
_rev=$(sed -rn 's/.*revision_number = ([0-9]+).*/\1/p' < sleepyhead/version.h)
- _build=$(cat sleepyhead/scripts/build_number)
_gitversion=$(git rev-parse --short HEAD)
- echo $_major.$_minor.$_rev.$_build.g$_gitversion
+ echo $_major.$_minor.$_rev.$_gitversion
}
build() {