# Contributor: Leo # Contributor: Carlo Landmeter # Maintainer: Natanael Copa pkgname=quazip pkgver=0.9.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" replaces="quazip-qt5" build() { cmake -B build . \ -DCMAKE_BUILD_TYPE=None \ -DCMAKE_INSTALL_PREFIX=/usr \ -DBUILD_WITH_QT4:BOOL=OFF \ -DCMAKE_CXX_FLAGS="$CFLAGS -fPIC" make -C build } package() { make -C build DESTDIR="$pkgdir" install install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING rm -f "$pkgdir"/usr/lib/*.a } sha512sums="db31f3c7e3d7e95c25090ceb8379643e0b49ed69ece009dd015bee120b2b60f42e73408f580caed3138fa19ca64dcd23a05f16435abb54e2b8df21105c7b42c0 quazip-0.9.1.tar.gz"