summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorLouis Taylor2019-08-30 21:58:59 +0100
committerLouis Taylor2019-08-30 21:58:59 +0100
commit63419bfdd953b2b6bd8c5359f087d0cac25c0311 (patch)
treeb996bf568f75893bba9d1928d694a2335ac8a770
parentbe8b33f3e20ecb55ea24a92402b2f038660fca22 (diff)
downloadaur-63419bfdd953b2b6bd8c5359f087d0cac25c0311.tar.gz
Use a more sensible pkgver
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD9
2 files changed, 4 insertions, 7 deletions
diff --git a/.SRCINFO b/.SRCINFO
index a2431acb05ff..f892c28d6826 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = compton-rounded-corners
pkgdesc = X Compositor (a fork of xcompmgr-dana) (with rounded corners patch)
- pkgver = 1186_Next.58.g0359abe_2019.08.30
+ pkgver = r16.be8b33f
pkgrel = 1
url = https://github.com/sdhand/compton
arch = i686
diff --git a/PKGBUILD b/PKGBUILD
index cd42ce49f9ce..6daab5903cbd 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -5,7 +5,7 @@
pkgname=compton-rounded-corners
_gitname=compton
-pkgver=1186_Next.58.g0359abe_2019.08.30
+pkgver=r16.be8b33f
pkgrel=1
pkgdesc="X Compositor (a fork of xcompmgr-dana) (with rounded corners patch)"
arch=(i686 x86_64)
@@ -24,11 +24,8 @@ source=(git+"https://github.com/sdhand/compton.git#branch=next")
md5sums=("SKIP")
pkgver() {
- cd ${_gitname}
- _tag=$(git describe --tags | sed 's:^v::') # tag is mobile, and switches between numbers and letters, can't use it for versioning
- _commits=$(git rev-list --count HEAD) # total commits is the most sane way of getting incremental pkgver
- _date=$(git log -1 --date=short --pretty=format:%cd)
- printf "%s_%s_%s\n" "${_commits}" "${_tag}" "${_date}" | sed 's/-/./g'
+ cd "${srcdir}"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {