summaryrefslogtreecommitdiff
path: root/user/itstool/APKBUILD
blob: 7fdfc40cc82137ecfaafd95c016c9ea035172ed4 (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
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=itstool
pkgver=2.0.5
pkgrel=0
pkgdesc="ITS-based XML translation tool"
url="http://itstool.org/"
arch="noarch"
license="GPL-3.0+"
depends="py3-libxml2 python3"
subpackages="$pkgname-doc"
source="http://files.itstool.org/itstool/$pkgname-$pkgver.tar.bz2
	fix-segfault.patch"

build() {
	cd "$builddir"

	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() {
	cd "$builddir"
	make check
	# verify that the shebang is correct
	chmod +x itstool
	./itstool
}

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

sha512sums="67c55b83e43b5a4626a6633305b2e48a06a5defdf7725e78b00409edea213d166cb3d870a58eb402c48968bddd7c1778d9852acfa0ddebdd363f34ac13f32aa7  itstool-2.0.5.tar.bz2
eb426e7cc9f151154f47b93ef46d6fcfb5fa0982be3bf78863ebf5ea009a89de252a6c63dfb090d76003c47107ebb5d1ac2a7d1ef7db08defe19e32f996dbdbd  fix-segfault.patch"