# Maintainer: Christoph Reiter <reiter.christoph@gmail.com>

_realname=toml
pkgbase="python-${_realname}"
pkgname=("python-${_realname}")
pkgver=0.10.2
pkgrel=2
pkgdesc="A Python library for parsing and creating TOML"
arch=('any')
license=('MIT')
url="https://github.com/uiri/toml"
depends=('python')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_realname::1}/${_realname}/${_realname}-${pkgver}.tar.gz")
sha256sums=('b3bda1d108d5dd99f4a20d24d9c348e91c4db7ab1b749200bded2f839ccbe68f')

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

package() {
  cd "${srcdir}/${_realname}-${pkgver}"
  /usr/bin/python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
  install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
