summaryrefslogblamecommitdiff
path: root/system/itstool/APKBUILD
blob: a49a096377cc32cd58c5948cc37787e884285c18 (plain) (tree)
1
2
3
4
5
6
7
8
9

                                                 
            
        




                                        
              




                                                                 











                                               






                                            


                                      
                                                                                                                                                                   
                                                                                                                                                     
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=itstool
pkgver=2.0.7
pkgrel=0
pkgdesc="ITS-based XML translation tool"
url="http://itstool.org/"
arch="noarch"
license="GPL-3.0+"
depends="py3-libxml2 python3"
makedepends=""
subpackages="$pkgname-doc"
source="http://files.itstool.org/itstool/$pkgname-$pkgver.tar.bz2
	fix-segfault.patch"

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

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

sha512sums="710c188e518a7eccbf9d31df59692fd6acc79430589a93ef4333f33f74440c311c340614ca74cc43191830567a98024d0981325ccd83a8fd9b75410d9dd91992  itstool-2.0.7.tar.bz2
eb426e7cc9f151154f47b93ef46d6fcfb5fa0982be3bf78863ebf5ea009a89de252a6c63dfb090d76003c47107ebb5d1ac2a7d1ef7db08defe19e32f996dbdbd  fix-segfault.patch"