aboutsummaryrefslogtreecommitdiffstats
path: root/community/quazip/APKBUILD
blob: d3ccc10ec90adc3154f0815f2e59db47bcc07f4b (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
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=quazip
pkgver=0.7.6
pkgrel=2
pkgdesc="C++ wrapper for the Gilles Vollant's ZIP/UNZIP C package"
options="!check" # Has no testsuite
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/$pkgver.tar.gz
	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
}

sha512sums="4325a69918216bb66c6a7c53589ef73473c3752151522a135dd9c92dbf722b29656aea7be0314c84399a214391eca79296ecda5811ab31845d8cf53c010110d1  quazip-0.7.6.tar.gz
06946c73c0e95e824066b55074086fd6aa0da2e9f4e0a267577276edf1048e8706a621c8e039a180512eaae00c88f32619ba59c7167c02d048374c1fef77b272  cmake-path.patch"