# Contributor: David Demelier <markand@malikania.fr>
# Maintainer: David Demelier <markand@malikania.fr>
pkgname=vimiv
pkgver=0.9.1
pkgrel=7
pkgdesc="an image viewer with vim-like keybindings"
url="https://github.com/karlch/vimiv"
arch="all"
license="GPL-3.0-only"
depends="python3 py3-gobject3 gtk+3.0 py3-pillow"
makedepends="python3-dev py3-setuptools"
subpackages="$pkgname-doc $pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/karlch/vimiv/archive/v$pkgver.tar.gz
	fix-appdata.patch::https://github.com/karlch/vimiv/pull/87.patch
	"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

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

sha512sums="b500e5b54450238b6471c1ea0c0831dc6b16238a99b9fcb531bc93bd0aa0b92fa192cbf2dd29f1679856f840dd6f6e4d27971403c85b71b6f333c525b77d9e69  vimiv-0.9.1.tar.gz
faa13ca3dcb0ad0258369bdd32d094cf72f6b26d46d2605fae9931688b2fa9307e942565eb9be317f6ee6faf693aabf9e0ec4c4f1bdf6672e231c7a02ddb50d7  fix-appdata.patch"
