diff options
author | Severin Glöckner | 2018-12-01 15:29:05 +0100 |
---|---|---|
committer | Severin Glöckner | 2018-12-01 15:31:21 +0100 |
commit | bbaa75d600e695c8575f291c20f05ea6205fe353 (patch) | |
tree | 14d0a3ea298e39cb2d039d8598c682b16e517e7d | |
parent | a47a4d009179e0b013bbaaa04eedf8f6867454ab (diff) | |
download | aur-bbaa75d600e695c8575f291c20f05ea6205fe353.tar.gz |
add pkgver(), remove patching
upstream detects catch2 now
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 15 |
2 files changed, 6 insertions, 11 deletions
@@ -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 @@ -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() { |