Files
MSYS2-packages/python-iniconfig/PKGBUILD
Christoph Reiter c6a134d91a Python 3.9 rebuilds
2021-05-15 15:21:37 +02:00

31 lines
843 B
Bash

# 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
}