aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Raschi <raschi.alex@gmail.com>2018-10-24 20:11:52 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2018-10-25 09:33:44 +0000
commit8dd92b33d9d022f146015b0dad725a6002e23681 (patch)
tree67ed36e4efdfbc6477b296c18b821b2c6fb23b5b
parentd356011a3e513513395c12cb74166424fad47281 (diff)
downloadaports-8dd92b33d9d022f146015b0dad725a6002e23681.tar.bz2
aports-8dd92b33d9d022f146015b0dad725a6002e23681.tar.xz
testing/quazip-qt5: add new aport for qt5 version of quazip
* needed for nomacs 3.12
-rw-r--r--testing/quazip-qt5/APKBUILD43
1 files changed, 43 insertions, 0 deletions
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
@@ -0,0 +1,43 @@
+# Maintainer: Alex Raschi <raschi.alex@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"