diff options
author | Alex Raschi <raschi.alex@gmail.com> | 2018-08-08 10:59:55 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2018-09-04 08:37:59 +0000 |
commit | 6d102928e62b62c168f419520de4de9270e9ccd6 (patch) | |
tree | 50f46d36a8850579b0fcddfbe8a61254cc4995fd /testing | |
parent | 47d5be7b7b4c66931bfd17171546fe55c1d7f71b (diff) | |
download | aports-6d102928e62b62c168f419520de4de9270e9ccd6.tar.bz2 aports-6d102928e62b62c168f419520de4de9270e9ccd6.tar.xz |
testing/nomacs: new aport
https://nomacs.org/
Small and fast Qt image viewer
Diffstat (limited to 'testing')
-rw-r--r-- | testing/nomacs/APKBUILD | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/testing/nomacs/APKBUILD b/testing/nomacs/APKBUILD new file mode 100644 index 0000000000..79af81c856 --- /dev/null +++ b/testing/nomacs/APKBUILD @@ -0,0 +1,61 @@ +# Maintainer: Alex Raschi <raschi.alex@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" |