summaryrefslogtreecommitdiff
path: root/user/quazip
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2019-06-18 00:55:12 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2019-06-18 00:55:12 +0000
commit0d4fa57ea96f1ea117e11ead4e3a86f51c55ef20 (patch)
treec9a0e2dc68aceb192e929ffb27bf6d894adf5730 /user/quazip
parenta64bd35866d8091aad89a6d1fba0e727b24e52ae (diff)
downloadpackages-0d4fa57ea96f1ea117e11ead4e3a86f51c55ef20.tar.gz
packages-0d4fa57ea96f1ea117e11ead4e3a86f51c55ef20.tar.bz2
packages-0d4fa57ea96f1ea117e11ead4e3a86f51c55ef20.tar.xz
packages-0d4fa57ea96f1ea117e11ead4e3a86f51c55ef20.zip
user/quazip: new package for Krita
Diffstat (limited to 'user/quazip')
-rw-r--r--user/quazip/APKBUILD39
1 files changed, 39 insertions, 0 deletions
diff --git a/user/quazip/APKBUILD b/user/quazip/APKBUILD
new file mode 100644
index 000000000..bae54fd46
--- /dev/null
+++ b/user/quazip/APKBUILD
@@ -0,0 +1,39 @@
+# Contributor: A. Wilcox <awilfox@adelielinux.org>
+# Maintainer: A. Wilcox <awilfox@adelielinux.org>
+pkgname=quazip
+pkgver=0.8.1
+pkgrel=0
+pkgdesc="Qt ZIP archive library"
+url="https://stachenov.github.io/quazip/"
+arch="all"
+license="LGPL-2.1-only WITH Static-linking-exception"
+depends=""
+makedepends="qt5-qtbase-dev zlib-dev"
+subpackages="$pkgname-dev"
+source="quazip-$pkgver.tar.gz::https://github.com/stachenov/quazip/archive/v$pkgver.tar.gz"
+
+build() {
+ if [ "$CBUILD" != "$CHOST" ]; then
+ CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
+ fi
+ cmake \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DBUILD_SHARED_LIBS=True \
+ -DCMAKE_BUILD_TYPE=RelWithDebugInfo \
+ -DCMAKE_CXX_FLAGS="$CXXFLAGS" \
+ -DCMAKE_C_FLAGS="$CFLAGS" \
+ ${CMAKE_CROSSOPTS} \
+ .
+ make
+}
+
+check() {
+ CTEST_OUTPUT_ON_FAILURE=TRUE ctest
+}
+
+package() {
+ make DESTDIR="$pkgdir" install
+}
+
+sha512sums="d65dab16c2cbc4d8bb23dae5b2fdff5ef787aaff2653b8e75c3fc8ba1701f5568a52bdde39009f83c5069a9fe3331cd1a49cf965822c4180e88bbc341faa2bfb quazip-0.8.1.tar.gz"