blob: a26702d3f034ab7e388dac8fd14076901c9b1484 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# Maintainer Severin Glöckner <severin.gloeckner@stud.htwk-leipzig.de>
# zipios++ has been rebranded to zipios
pkgname=zipios-git
pkgver=2.2.1.0
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() {
cd Zipios
_pkgver=$( git describe --tags --abbrev=0 | sed s/^v// )
if [ $_pkgver = $(git describe --tags | sed s/^v// ) ]; then
# version is tagged
echo $_pkgver
else
# otherwise tag + date of last commit, in the same style like old zipios++
_last_commit_date=$( git log -1 --date=short --pretty=format:%cd | sed s/-/./g )
echo $_pkgver+cvs.$_last_commit_date
fi
}
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
}
|