summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorChocobo12020-09-16 21:53:21 +0800
committerChocobo12020-09-16 21:53:21 +0800
commit4e21e6d3050b72f57822a6fdb97e580895c9f38a (patch)
tree274e5c57fbff608eab2fd3a3062aa0f2352319f5
parentfbfbdf4f9f6976a97224cf4021bc03ef116949c8 (diff)
downloadaur-4e21e6d3050b72f57822a6fdb97e580895c9f38a.tar.gz
upgpkg: qrencode-git 4.1.0.r0.g0f6149e-1
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD8
2 files changed, 5 insertions, 5 deletions
diff --git a/.SRCINFO b/.SRCINFO
index c30ed8b9a51..608c185c787 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = qrencode-git
pkgdesc = A fast and compact QR Code encoding library
- pkgver = 4.0.2.r43.g13b159f
+ pkgver = 4.1.0.r0.g0f6149e
pkgrel = 1
url = https://fukuchi.org/works/qrencode/
arch = i686
diff --git a/PKGBUILD b/PKGBUILD
index 86e33ba1bc8..bb82fd8ca62 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>
pkgname=qrencode-git
-pkgver=4.0.2.r43.g13b159f
+pkgver=4.1.0.r0.g0f6149e
pkgrel=1
pkgdesc="A fast and compact QR Code encoding library"
arch=('i686' 'x86_64')
@@ -18,10 +18,10 @@ sha256sums=('SKIP')
pkgver() {
cd "libqrencode"
- _tag=$(git tag -l --sort -v:refname | sed -n '1,1{s/v//p}')
- _rev=$(git rev-list --count v$_tag..HEAD)
+ _tag=$(git tag -l --sort -v:refname | head -n1)
+ _rev=$(git rev-list --count $_tag..HEAD)
_hash=$(git rev-parse --short HEAD)
- printf "%s.r%s.g%s" "$_tag" "$_rev" "$_hash"
+ printf "%s.r%s.g%s" "$_tag" "$_rev" "$_hash" | sed 's/^v//'
}
build() {