Mail archive
alpine-aports

[alpine-aports] [PATCH] testing/nomacs: new aport

From: Alex Raschi <raschi.alex_at_gmail.com>
Date: Wed, 8 Aug 2018 10:59:55 +0200

https://nomacs.org/
Small and fast Qt image viewer
---
 testing/nomacs/APKBUILD | 61 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 61 insertions(+)
 create mode 100644 testing/nomacs/APKBUILD
diff --git a/testing/nomacs/APKBUILD b/testing/nomacs/APKBUILD
new file mode 100644
index 0000000000..79af81c856
--- /dev/null
+++ b/testing/nomacs/APKBUILD
_at_@ -0,0 +1,61 @@
+# Maintainer: Alex Raschi <raschi.alex_at_gmail.com>
+pkgname=nomacs
+pkgver=3.10.2
+pkgrel=0
+pkgdesc="Small and fast Qt image viewer"
+url="https://nomacs.org/"
+arch="all"
+license="GPL-3.0-or-later"
+depends="qt5-qtimageformats"
+makedepends="cmake
+	qt5-qtbase-dev
+	qt5-qttools-dev
+	qt5-qtsvg-dev
+	exiv2-dev
+	libraw-dev
+	opencv
+	opencv-dev
+	tiff-dev
+	quazip-dev
+	libwebp-dev
+	lcov
+	libzip-dev"
+subpackages="$pkgname-doc $pkgname-lang"
+options="!check" # no test suite
+source="$pkgname-$pkgver.tar.gz::https://github.com/nomacs/$pkgname/archive/$pkgver.tar.gz"
+builddir="$srcdir/$pkgname-$pkgver/ImageLounge"
+
+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" \
+		-DENABLE_QT_DEBUG=False \
+		-DENABLE_TRANSLATIONS=True \
+		-DENABLE_PLUGINS=False \
+		-DUSE_SYSTEM_QUAZIP=True \
+		${CMAKE_CROSSOPTS}
+	make
+}
+
+package() {
+	cd "$builddir"
+	make DESTDIR="$pkgdir" install
+}
+
+lang() {
+	pkgdesc="Languages for package $pkgname"
+	depends=""
+	local langdir="usr/share/$pkgname/translations"
+
+	mkdir -p "$subpkgdir"/"$langdir"
+	mv "$pkgdir"/"$langdir"/* "$subpkgdir"/"$langdir"/
+}
+
+sha512sums="977dbe24e09b00001dd8a33b18c1dbbb3a59106715746b07892f289918205818664fd7b4213028d4288009bcf14a0195759ac1eafca076f81ee72a1e2ae027dd  nomacs-3.10.2.tar.gz"
-- 
2.18.0
---
Unsubscribe:  alpine-aports+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-aports+help_at_lists.alpinelinux.org
---
Received on Wed Aug 08 2018 - 10:59:55 UTC