aboutsummaryrefslogtreecommitdiffstats
path: root/main/itstool/APKBUILD
blob: f029a61c17625c6e1a9f7eee1fd8f2eb2d6165fe (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
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
"