aboutsummaryrefslogtreecommitdiffstats
path: root/community/qimgv/APKBUILD
blob: 525c86fd86adcc5e9720029f7ac515d2c49968da (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
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer:
pkgname=qimgv
pkgver=0.9
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() {
	cmake -B build . \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DEXIV2=ON \
		-DVIDEO_SUPPORT=ON \
		-DOPENCV_SUPPORT=OFF \
		-DKDE_SUPPORT=OFF
	make -C build
}

package() {
	make -C build DESTDIR="$pkgdir" install
}

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="1ea2a380ed0286b4773d87d2f57dafb0054ad53d9dd4274744bb76cac5622f71a1e37b06430370e9e00e8ff38c2c8c06c3d02bb1b493642db475f3dcd6817568  qimgv-0.9.tar.gz"