# Contributor: Boris Faure <boris@fau.re>
# Maintainer: Boris Faure <boris@fau.re>
pkgname=terminology
pkgver=1.14.0
pkgrel=0
pkgdesc="Terminology Terminal Emulator"
url="https://www.enlightenment.org/about-terminology"
arch="all !s390x"
license="BSD-2-Clause"
makedepends="
	efl-dev
	meson
	"
subpackages="$pkgname-doc $pkgname-lang"
source="https://download.enlightenment.org/rel/apps/terminology/terminology-${pkgver/_/-}.tar.xz
0001-tytest-make-tests-reliable-on-x32-systems.patch"

prepare() {
	default_prepare
}

build() {
	abuild-meson . build

	meson compile -C build
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C build
}

check() {
	abuild-meson . -Dtests=true checkbuild
	meson compile -C checkbuild tytest
	tests/run_tests.sh -e -t checkbuild/src/bin/tytest -r tests/tests.results -d tests/ -v
}

sha512sums="
872cf0b204d781ff3e284bd79ac82c3bf76444263c9786413d5ac8693bc7d9da5e1a68851c1d51fdcdaa4ccb19cee40b12f152f7a696766e37280c62da4f29e1  terminology-1.14.0.tar.xz
2873aca7eaf96bbdb8d7c6fc62b06baeefa6856b1147bfba3f86ce3a1bec74c1fdf2fc8039c78f9d3598c0ce6ac5d68fb7c8a8f8f47b9530137df9f29388d4f5  0001-tytest-make-tests-reliable-on-x32-systems.patch
"
