aboutsummaryrefslogtreecommitdiffstats
path: root/community/qimgv/APKBUILD
blob: 1aa9fcdda8aad464ee093a2bcdc1ca73a5ffa04f (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
# Maintainer: Leo <thinkabit.ukim@gmail.com>
pkgname=qimgv
pkgver=0.8.6
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="da87379d69f7d5fde63e73d4cfb4a2e4a53f1e78b4ca957414c050bde7c2e83bbfe23e6f44b619e2c60f8b20c870d8dea8e8b29bf2c5279b681cae8c705d2a8f  qimgv-0.8.6.tar.gz"