# Maintainer (arch): milki <milki at rescomp dot berkeley dot edu>
# Maintainer: André Silva <emulatorman@hyperbola.info>
# Contributor: Luke Shumaker <lukeshu@lukeshu.com>

pkgname=xml2rfc
pkgver=2.19.1
pkgdesc="A tool to convert an RFC from XML to text, HTML and other formats"
url="https://trac.tools.ietf.org/tools/xml2rfc/trac/"
license=('custom:bsd3')
depends=('python' 'python-lxml' 'python-setuptools')
source=("https://tools.ietf.org/tools/xml2rfc2/cli/xml2rfc-$pkgver.tar.gz")
sha256sums=('93a09a8cd555594fc6aa57f3a0c39d1f23ccecb15778b7dbef20015dab3528c1')

pkgrel=1
arch=('any')
replaces=('xml2rfc-python' 'xml2rfc-python2')
conflicts=('xml2rfc-python' 'xml2rfc-python2')

package() {
  cd "$srcdir/xml2rfc-$pkgver"
  python setup.py install --root="$pkgdir" --optimize=1
  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
