# Maintainer: Natanael Copa pkgname=itstool pkgver=2.0.7 pkgrel=1 pkgdesc="ITS-based XML translation tool" url="https://itstool.org/" arch="noarch" license="GPL-3.0-or-later" depends="py3-libxml2 python3" makedepends="autoconf automake" checkdepends="diffutils gettext" subpackages="$pkgname-doc" source="https://github.com/itstool/itstool/archive/$pkgver/itstool-$pkgver.tar.gz fix-segfault.patch " options="net" # Tests require network access prepare() { default_prepare autoreconf -vif } build() { PYTHON="/usr/bin/python3" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --localstatedir=/var make } check() { python3 tests/run_tests.py } package() { make DESTDIR="$pkgdir" install } sha512sums=" 03f16486336add31d24e74554fcb22f5ec00e0db63f890fb94d4a4561048b7aecaadd86d9ab7489a1b5f7adf180ce1b27131db928488e4e6ffe9444eee38a2e9 itstool-2.0.7.tar.gz a47ab86ee0ea7b8fa8329649cda28db91e106ffdc695836e55f274b406759e3945835dbaf32230a30f2afaf482aff0ef205a12d722a19a6ab874c8f33413df9a fix-segfault.patch "