summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSeverin Glöckner2018-12-01 15:29:05 +0100
committerSeverin Glöckner2018-12-01 15:31:21 +0100
commitbbaa75d600e695c8575f291c20f05ea6205fe353 (patch)
tree14d0a3ea298e39cb2d039d8598c682b16e517e7d
parenta47a4d009179e0b013bbaaa04eedf8f6867454ab (diff)
downloadaur-bbaa75d600e695c8575f291c20f05ea6205fe353.tar.gz
add pkgver(), remove patching
upstream detects catch2 now
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD15
2 files changed, 6 insertions, 11 deletions
diff --git a/.SRCINFO b/.SRCINFO
index ae6833fa535..1cf3a68afd2 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = zipios-git
pkgdesc = Small C++ library for reading and writing zip files, similar to java.util.zip and the standard iostreams library
- pkgver = 2.1.7
+ pkgver = 2.1.7.git20181201
pkgrel = 1
url = http://zipios.sourceforge.net
arch = i686
diff --git a/PKGBUILD b/PKGBUILD
index 476d3764143..4cc8e1d5d7d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,8 @@
# zipios++ has been rebranded to zipios
pkgname=zipios-git
-pkgver=2.1.7
+pkgver=2.1.7.git20181201
+_pkgver=2.1.7
pkgrel=1
pkgdesc="Small C++ library for reading and writing zip files, similar to java.util.zip and the standard iostreams library"
arch=('i686' 'x86_64')
@@ -15,15 +16,9 @@ checkdepends=('catch2' 'zip')
source=("git+https://github.com/Zipios/Zipios.git")
md5sums=('SKIP')
-#pkgver() {
-# there's no good way to do it currently, as upstream uses no tags
-#}
-
-# catch version 2's files are in a subdirectory
-prepare() {
- cd Zipios
- sed -i 's;/usr/include$;/usr/include/catch2;' cmake/FindCatch.cmake
- sed -i 's;/usr/local/include$;/usr/local/include/catch2;' cmake/FindCatch.cmake
+pkgver() {
+ _last_commit_date=$( git log -1 --date=short --pretty=format:%cd | sed s/-//g )
+ echo $_pkgver.git$_last_commit_date
}
build() {