aboutsummaryrefslogtreecommitdiffstats
path: root/community/qimgv/APKBUILD
blob: bffbbfd355c812ce0af7c5a22a733f852d48d6a3 (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
# Maintainer: Leo <thinkabit.ukim@gmail.com>
pkgname=qimgv
pkgver=0.8.8
pkgrel=0
pkgdesc="Cross-platform image viewer with webm support"
url="https://github.com/easymodo/qimgv"
options="!check"
arch="all"
license="GPL-3.0-or-later"
depends="hicolor-icon-theme"
depends_dev="qt5-qtbase-dev exiv2-dev mpv-dev"
makedepends="$depends_dev cmake"
subpackages="$pkgname-dev $pkgname-mpv"
source="$pkgname-$pkgver.tar.gz::https://github.com/easymodo/qimgv/archive/v$pkgver.tar.gz"

build() {
	mkdir build && cd build
	cmake .. \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DEXIV2=ON \
		-DVIDEO_SUPPORT=ON \
		-DKDE_SUPPORT=OFF
	cmake --build .
}

package() {
	cd "$builddir"/build
	cmake --build . --target install -- DESTDIR="$pkgdir"
}

mpv() {
	pkgdesc="$pkgdesc (mpv support)"
	install_if="$pkgname=$pkgver-r$pkgrel mpv-libs"

	mkdir -p "$subpkgdir"/usr/lib
	mv "$pkgdir"/usr/lib/libqimgv_player_mpv.so.* "$subpkgdir"/usr/lib
}

sha512sums="376f79eba2a625eb0f622494ce7ba98e1182b43cc6d7e268382c794a74d2772bd17083ac9ae45fcafc5eeb0665ef06ab34bdbeee8401a35bd0652744c576e131  qimgv-0.8.8.tar.gz"