blob: 80f6507809ec6b2e8e237a6a662fe4c039e0f504 (
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
|
# Contributor: Fabio 'Lolix' Loli <fabio.loli@disroot.org> -> https://github.com/FabioLolix
# Contributor: David Runge <dvzrv@archlinux.org>
# Contributor: speps <speps at aur dot archlinux dot org>
pkgname=nomacs-qt6-git
pkgver=3.17.2287.r32.g645eaaf
pkgrel=1
pkgdesc="A Qt image viewer"
arch=(x86_64)
url="https://nomacs.org/"
license=(GPL3)
provides=("nomacs")
conflicts=("nomacs")
depends=(exiv2 gcc-libs glibc libraw libtiff opencv qt6-base qt6-svg qt6-5compat)
makedepends=(cmake git git-lfs qt6-tools python)
optdepends=('qt6-imageformats: support additional image formats')
source=("git+https://github.com/nomacs/nomacs.git"
"git+https://github.com/v-tyrtov/nomacs-plugins.git"
)
b2sums=('SKIP'
'SKIP'
)
export GIT_LFS_SKIP_SMUDGE=1
pkgver() {
cd "$srcdir/nomacs"
git describe --long --tags --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
cd "$srcdir/nomacs"
# copy plugin sources into place
cp -av "${srcdir}/nomacs-plugins/"* "ImageLounge/plugins"
}
build() {
cd "$srcdir/nomacs"
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DQT_VERSION_MAJOR=6 \
-DUSE_SYSTEM_QUAZIP=ON \
-DENABLE_AVIF=ON \
-DENABLE_TRANSLATIONS=ON \
-W no-dev \
-B build \
-S ./ImageLounge
make VERBOSE=1 -C build
}
package() {
cd "$srcdir/nomacs"
make DESTDIR="${pkgdir}" install -C build
}
|