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

pkgbase=python-iniconfig
pkgname=(python-iniconfig)
pkgver=1.1.1
pkgrel=2
pkgdesc="brain-dead simple config-ini parsing"
url="https://github.com/RonnyPfannschmidt/iniconfig"
license=('MIT')
arch=('any')
depends=('python')
makedepends=('python-setuptools'
             'python-setuptools-scm')
source=("$pkgbase-$pkgver.tar.gz::https://github.com/RonnyPfannschmidt/iniconfig/archive/v$pkgver.tar.gz")
sha256sums=('a4489e91242e035cb58700d9a3c4bf49e0b106a85fefefe48025e333ea5ee49c')

export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver

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

package() {
  cd iniconfig-$pkgver

  /usr/bin/python setup.py install --root="$pkgdir" --optimize=1
  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}

