blob: 8f35b656dfa4dad00dc5f45a7210c1518f73bc82 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
# Maintainer: Alex Raschi <raschi.alex@gmail.com>
pkgname=nomacs
pkgver=3.12
pkgrel=1
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
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() {
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_OPENCV=False \
-DENABLE_RAW=False \
-DENABLE_TIFF=False \
-DENABLE_QT_DEBUG=False \
-DENABLE_TRANSLATIONS=True \
-DENABLE_PLUGINS=False \
-DUSE_SYSTEM_QUAZIP=True \
${CMAKE_CROSSOPTS}
make
}
package() {
make DESTDIR="$pkgdir" install
}
lang() {
pkgdesc="Languages for package $pkgname"
depends=""
local langdir="usr/share/$pkgname/Image Lounge/translations"
mkdir -p "$subpkgdir"/"$langdir"
mv "$pkgdir"/"$langdir"/* "$subpkgdir"/"$langdir"/
}
sha512sums="4508354d48a6115cd40f701cc90cbbcb84490e99eaac0295db48f6fea99550d5e2b3e7365128d0c9cc4eeb621906f55e275603d84cb8b6bb164d0b5e2e192119 nomacs-3.12.tar.gz"
|