# Contributor: David Demelier <markand@malikania.fr>
# Maintainer: David Demelier <markand@malikania.fr>
pkgname=vimiv-qt
pkgver=0.9.0
pkgrel=2
pkgdesc="an image viewer with vim-like keybindings"
url="https://github.com/karlch/vimiv-qt"
arch="all !armhf" # armhf blocked by py3-qt5 (qt5-qtdeclarative)
license="GPL-3.0-only"
depends="python3 py3-qt5"
makedepends="python3-dev py3-setuptools py3-gpep517 py3-wheel"
checkdepends="py3-pytest"
subpackages="$pkgname-doc $pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/karlch/vimiv-qt/archive/v$pkgver.tar.gz
	makefile.patch
	"
options="!check" # Not working yet.

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

check() {
	python3 -m pytest
}

package() {
	make -f misc/Makefile DESTDIR="$pkgdir" install
}

sha512sums="
bf8207da1d84a6a47dda04ff06303d553a866e413521057e0c5ba0492a705abe9c941367e8977621ba695f4f8fcf7f2461f53feb4456842973977b8e07d4dd56  vimiv-qt-0.9.0.tar.gz
24d14ef329d4cc1fb3b9bc39be060c1f41c7a534acc9cb82c712a455c598b1c7cef2badd6795ef74d95e1aaee2a29f6f2729e50a4abc4800795449c04262c5f5  makefile.patch
"
