Files
MSYS2-packages/python-tomli/PKGBUILD
Christoph Reiter d055b5227e python-tomli: rework bootstrap path
use flit and installer
2022-12-18 19:18:28 +01:00

29 lines
611 B
Bash

pkgname=python-tomli
pkgver=2.0.1
pkgrel=2
pkgdesc="A lil' TOML parser"
url="https://github.com/hukkin/tomli"
license=('spdx:MIT')
arch=('any')
depends=('python')
makedepends=(
'python-flit-core'
'python-installer'
)
source=("https://github.com/hukkin/tomli/archive/$pkgver/$pkgname-$pkgver.tar.gz")
sha256sums=('ad22dbc128623e0c156ffaff019f29f456eba8a5d5a05164dd34f63e560449df')
build() {
cd "tomli-${pkgver}"
python -m flit_core.wheel
}
package() {
cd "tomli-${pkgver}"
python -m installer --destdir="${pkgdir}" dist/*.whl
install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
}