summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSeverin Glöckner2018-12-01 01:52:17 +0100
committerSeverin Glöckner2018-12-01 01:53:52 +0100
commita47a4d009179e0b013bbaaa04eedf8f6867454ab (patch)
tree649f3a5d2afed93979261218fcc95e2689e9805b
downloadaur-a47a4d009179e0b013bbaaa04eedf8f6867454ab.tar.gz
zipios library
-rw-r--r--.SRCINFO20
-rw-r--r--PKGBUILD49
2 files changed, 69 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..ae6833fa535
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,20 @@
+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
+ pkgrel = 1
+ url = http://zipios.sourceforge.net
+ arch = i686
+ arch = x86_64
+ license = LGPL
+ checkdepends = catch2
+ checkdepends = zip
+ makedepends = cmake
+ makedepends = doxygen
+ makedepends = graphviz
+ depends = zlib
+ conflicts = zipios++
+ source = git+https://github.com/Zipios/Zipios.git
+ md5sums = SKIP
+
+pkgname = zipios-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..476d3764143
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,49 @@
+# Maintainer Severin Glöckner <severin.gloeckner@stud.htwk-leipzig.de>
+
+# zipios++ has been rebranded to zipios
+pkgname=zipios-git
+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')
+url="http://zipios.sourceforge.net"
+license=('LGPL')
+conflicts=('zipios++')
+depends=('zlib')
+makedepends=('cmake' 'doxygen' 'graphviz')
+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
+}
+
+build() {
+ rm -rf build && mkdir build && cd build
+ cmake ../Zipios \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DLIB_INSTALL_DIR=/usr/lib \
+ -Wno-dev
+ #-DBUILD_DOCUMENTATION=OFF
+ #-DBUILD_ZIPIOS_TESTS=OFF
+ make
+}
+
+check() {
+ cd build
+ make run_zipios_tests
+ # they take some time
+}
+
+package() {
+ cd build
+ make DESTDIR=$pkgdir install
+}