aboutsummaryrefslogtreecommitdiffstats
path: root/community/imv/APKBUILD
blob: c8bd74d4a810c65207b142a6ff492137790274c4 (plain) (blame)
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
59
60
61
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=imv
pkgver=4.3.0
pkgrel=2
pkgdesc="Image viewer for X11/Wayland"
url="https://github.com/eXeC64/imv"
# s390x, mips64 and riscv64 blocked by librsvg
arch="all !s390x !mips64 !riscv64"
license="MIT"
makedepends="
	meson
	asciidoc
	fontconfig-dev
	freeimage-dev
	sdl2_ttf-dev
	librsvg-dev
	wayland-dev
	mesa-dev
	libxkbcommon-dev
	glu-dev
	pango-dev
	inih-dev
	"
checkdepends="
	cmocka
	cmocka-dev
	"
subpackages="$pkgname-doc"
# TODO: drop patch after next release
source="$pkgname-$pkgver.tar.gz::https://github.com/eXeC64/imv/archive/v$pkgver.tar.gz
	fix-imv-folder.patch
	"

build() {
	abuild-meson \
		-Dwindows=all \
		-Dtest=enabled \
		-Dman=enabled \
		-Dfreeimage=enabled \
		-Dlibtiff=disabled \
		-Dlibpng=disabled \
		-Dlibjpeg=disabled \
		-Dlibrsvg=enabled \
		-Dlibnsgif=disabled \
		-Dlibheif=disabled \
		. output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

check() {
	meson test --no-rebuild -v -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
1735c03c48888004b11b3aaf0215a9530c035468a8efdb210d856551ebb75030c906eee2b6ab80e5d3646206e6051a73a8c5e15c010dd09bca7f9e90f9b0e34b  imv-4.3.0.tar.gz
edab6db31201278db463205338ac6114ab593a36a7afd2db73f6b7e0660fa327444dba2b73ed0b77b2ba196e79b628545ad2c1ad29c253ce7fac43c7ea3bfc9d  fix-imv-folder.patch
"