# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=terminator
pkgver=1.91
pkgrel=3
pkgdesc="Terminal emulator that supports tabs and grids"
url="https://gnometerminator.blogspot.fr/p/introduction.html"
arch="noarch"
license="GPL-2.0"
depends="python2 py-gtk xdg-utils vte3 dbus-glib gettext intltool keybinder3
	gconf gsettings-desktop-schemas py2-gobject3 py2-cairo py-dbus py-psutil"
makedepends="python2-dev"
subpackages="$pkgname-doc $pkgname-lang"
source="https://launchpad.net/$pkgname/gtk3/$pkgver/+download/$pkgname-$pkgver.tar.gz"

builddir="$srcdir"/$pkgname-$pkgver

check() {
	cd "$builddir"
	python2 setup.py check
}

build() {
	cd "$builddir"
	python2 setup.py build
}

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

sha512sums="6feee96cda08f913601d3b01e51632bed87712ddb5ce577df1daa8a5fe4e8dc39075d5e21f87b865d1f007c7e1070ee2c0c814540c9c7786f0f24fbee762a03d  terminator-1.91.tar.gz"
