# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=accerciser
pkgver=3.40.0
pkgrel=4
pkgdesc="Interactive Python accessibility explorer"
url="https://wiki.gnome.org/Apps/Accerciser"
arch="noarch"
license="BSD-3-Clause"
depends="
	gtk+3.0
	ipython
	librsvg
	libwnck3
	py3-atspi
	py3-gobject3
	py3-xlib
	"
makedepends="
	appstream-glib-dev
	at-spi2-core-dev
	autoconf
	automake
	glib-dev
	gtk+3.0-dev
	itstool
	py3-gobject3-dev
	yelp-tools
	"
options="!check" # no tests
subpackages="$pkgname-lang $pkgname-doc $pkgname-pyc"
source="https://gitlab.gnome.org/GNOME/accerciser/-/archive/$pkgver/accerciser-$pkgver.tar.gz"

prepare() {
	default_prepare
	autoreconf -fi
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

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

sha512sums="
ac372a6009902a898570d5eb599bc6a95302aca729ce39fbb1143d3b321974986ec0eb13c02ecd24644da8de48e044c84abe657b1aef8e1549b211ba6ff0b276  accerciser-3.40.0.tar.gz
"
