NAME="itstool"
DESC="Extracts messages from XML files and outputs PO template files, then merges translations from MO files to create translated XML files"
VERSION="2.0.7"
FILES=("https://files.itstool.org/itstool/itstool-$VERSION.tar.bz2")
HASHES=("267a3bdc72a2d8abb1b824f2ea32ee9b")
DEPENDS=("docbook-xml")

PACKAGE() {
  tar xf $NAME-$VERSION.tar.bz2
  cd $NAME-$VERSION

  PYTHON=/usr/bin/python3 ./configure --prefix=/usr
  make && make DESTDIR="$ROOTDIR" install

  cd .. && rm -r $NAME-$VERSION
}
