Commit 6d102928 authored by Alex Raschi's avatar Alex Raschi Committed by Natanael Copa

testing/nomacs: new aport

https://nomacs.org/
Small and fast Qt image viewer
parent 47d5be7b
# 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"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment