# borrowed from Arch without changes
# Maintainer: Norbert Pfeiler <norbert.pfeiler+aur ät gmail.com>

pkgname=txt2tags
pkgver=3.7
pkgrel=2
pkgdesc='A text formatting and conversion tool.'
arch=('any')
url='https://www.txt2tags.org/'
license=('GPL')
depends=('python')
makedepends=('python-setuptools')
source=(https://pypi.python.org/packages/source/t/txt2tags/txt2tags-${pkgver}.tar.gz)
sha256sums=('27969387206d12b4e4a0eb13d0d5dd957d71dbb932451b0dceeab5e3dbb6178a')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  /usr/bin/python setup.py build
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  /usr/bin/python setup.py install --root="${pkgdir}"
}
