# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=terminator
pkgver=2.1.4
pkgrel=0
pkgdesc="Terminal emulator that supports tabs and grids"
url="https://github.com/gnome-terminator/terminator"
arch="noarch"
license="GPL-2.0"
depends="
	dbus-glib
	gettext
	gsettings-desktop-schemas
	intltool
	keybinder3
	py3-cairo
	py3-configobj
	py3-dbus
	py3-gobject3
	py3-psutil
	python3
	vte3
	xdg-utils
	"
makedepends="
	py3-pytest-runner
	py3-setuptools
	python3-dev
	"
checkdepends="py3-pytest libnotify xvfb-run"
subpackages="$pkgname-doc $pkgname-lang $pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/gnome-terminator/terminator/archive/v$pkgver.tar.gz"

build() {
	python3 setup.py build
}

check() {
	xvfb-run python3 -m pytest -k 'not test_keybinding_edit_produce_expected_accels'
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
	rm -f "$pkgdir/usr/share/icons/hicolor/icon-theme.cache"
}

sha512sums="
6a6d441fa849695a5c4919db6d553ce8572f75ef66bfb6d4c7cd044d2e952428841c315a90aca0906592bdfff28ff93a17e8a0d6a72287563d1a6d3d6a319db9  terminator-2.1.4.tar.gz
"
