Mail archive
alpine-aports

[alpine-aports] [PATCH 2/3] testing/quazip-qt5: add new aport for qt5 version of quazip

From: Alex Raschi <raschi.alex_at_gmail.com>
Date: Wed, 24 Oct 2018 20:11:52 +0200

* needed for nomacs 3.12
---
 testing/quazip-qt5/APKBUILD | 43 +++++++++++++++++++++++++++++++++++++
 1 file changed, 43 insertions(+)
 create mode 100644 testing/quazip-qt5/APKBUILD
diff --git a/testing/quazip-qt5/APKBUILD b/testing/quazip-qt5/APKBUILD
new file mode 100644
index 0000000000..efbd1b8cbf
--- /dev/null
+++ b/testing/quazip-qt5/APKBUILD
_at_@ -0,0 +1,43 @@
+# Maintainer: Alex Raschi <raschi.alex_at_gmail.com>
+pkgname=quazip-qt5
+_pkgname=quazip
+pkgver=0.7.6
+pkgrel=0
+pkgdesc="C++ wrapper for the Gilles Vollant's ZIP/UNZIP C package"
+url="https://github.com/stachenov/$_pkgname"
+arch="all"
+license="LGPL-2.1-or-later"
+makedepends="cmake zlib-dev qt5-qtbase-dev"
+subpackages="$pkgname-dev"
+options="!check"
+source="$_pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz"
+builddir="$srcdir/$_pkgname-$pkgver"
+
+build() {
+	cd "$builddir"
+	if [ "$CBUILD" != "$CHOST" ]; then
+		CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
+	fi
+	cmake \
+		-DCMAKE_INSTALL_PREFIX=/usr \
+		-DBUILD_SHARED_LIBS=True \
+		-DCMAKE_BUILD_TYPE=Release \
+		-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
+		-DCMAKE_C_FLAGS="$CFLAGS" \
+		${CMAKE_CROSSOPTS}
+	make
+}
+
+package() {
+	cd "$builddir"
+	make DESTDIR="$pkgdir" install
+}
+
+dev() {
+	mkdir -p "$subpkgdir"/usr
+	mv "$pkgdir"/usr/share "$subpkgdir"/usr
+
+	default_dev
+}
+
+sha512sums="4325a69918216bb66c6a7c53589ef73473c3752151522a135dd9c92dbf722b29656aea7be0314c84399a214391eca79296ecda5811ab31845d8cf53c010110d1  quazip-0.7.6.tar.gz"
-- 
2.19.1
---
Unsubscribe:  alpine-aports+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-aports+help_at_lists.alpinelinux.org
---
Received on Wed Oct 24 2018 - 20:11:52 UTC