summaryrefslogtreecommitdiff
path: root/user/itstool/APKBUILD
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-06 04:27:33 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-06 04:27:33 -0500
commitc48c8a420b98dbee6779508e31edc3886c915961 (patch)
tree92f92ae079830489cdbca55c9435e617e00e128b /user/itstool/APKBUILD
parent5d6de91b9f8c81199a37610d97f5b33f2b18cb6d (diff)
downloadpackages-c48c8a420b98dbee6779508e31edc3886c915961.tar.gz
packages-c48c8a420b98dbee6779508e31edc3886c915961.tar.bz2
packages-c48c8a420b98dbee6779508e31edc3886c915961.tar.xz
packages-c48c8a420b98dbee6779508e31edc3886c915961.zip
user/itstool: pull in, take, fix
Diffstat (limited to 'user/itstool/APKBUILD')
-rw-r--r--user/itstool/APKBUILD42
1 files changed, 42 insertions, 0 deletions
diff --git a/user/itstool/APKBUILD b/user/itstool/APKBUILD
new file mode 100644
index 000000000..6d6b66814
--- /dev/null
+++ b/user/itstool/APKBUILD
@@ -0,0 +1,42 @@
+# Maintainer: A. Wilcox <awilfox@adelielinux.org>
+pkgname=itstool
+pkgver=2.0.4
+pkgrel=4
+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="f5cfa9c75710f9cc43a61caeb92ca04ec77023bce6fb14d770dda82efde2e5d9050245618c249d309227a3d43555cb1739f5fe680b4a370786ed4631fa9ee4b7 itstool-2.0.4.tar.bz2
+eb426e7cc9f151154f47b93ef46d6fcfb5fa0982be3bf78863ebf5ea009a89de252a6c63dfb090d76003c47107ebb5d1ac2a7d1ef7db08defe19e32f996dbdbd fix-segfault.patch"