blob: 727ed5ea3eb47732e90ccd704c61e00c71177b9c (
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
|
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=quazip
pkgver=0.8.1
pkgrel=0
pkgdesc="C++ wrapper for the Gilles Vollant's ZIP/UNZIP C package"
options="!check" # Testsuite only available with qmake not cmake
url="https://sourceforge.net/projects/quazip/"
arch="all"
# Has custom static linking exception
license="LGPL-2.1-or-later WITH custom-static-linking-exception"
makedepends="qt5-qtbase-dev cmake"
subpackages="$pkgname-dev $pkgname-doc"
source="quazip-$pkgver.tar.gz::https://github.com/stachenov/quazip/archive/v$pkgver.tar.gz
fix-cmake-path.patch
"
replaces="quazip-qt5"
build() {
mkdir -p build
cd build
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DBUILD_WITH_QT4:BOOL=OFF \
-DCMAKE_CXX_FLAGS="$CFLAGS -fPIC" \
..
make
}
package() {
make -C build DESTDIR="$pkgdir" install
install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
rm -f "$pkgdir"/usr/lib/*.a
}
sha512sums="d65dab16c2cbc4d8bb23dae5b2fdff5ef787aaff2653b8e75c3fc8ba1701f5568a52bdde39009f83c5069a9fe3331cd1a49cf965822c4180e88bbc341faa2bfb quazip-0.8.1.tar.gz
430ac7af402812c7d070fae9e8faccc1779e6f95b595970f45cfda07031c2e6038828bcbed1eb11f450291c0d1c409eb852cf540d714db50110fbb84f6f06252 fix-cmake-path.patch"
|