summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5f9952036defd3bb7715d562fcf8757a5e9b7a5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Maintainer: Andrej Radović <r.andrej@gmail.com>
pkgname=python-kiutils
_name=${pkgname#python-}
pkgver=1.4.1
pkgrel=1
pkgdesc="Simple and SCM-friendly KiCad file parser based on Python dataclasses"
url="https://github.com/mvnmgrx/kiutils"
depends=('python')
makedepends=('python-build' 'python-installer' 'python-wheel')
license=('MIT')
arch=('any')
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
sha256sums=('f57d66bf175483545c385b2d376e138ea565dbd6b9ccce10e1666f01afead036')

build() {
	cd "$srcdir/$_name-$pkgver"
    python -m build --wheel --no-isolation
}

package() {
	cd "$srcdir/$_name-$pkgver"
    python -m installer --destdir="$pkgdir" dist/*.whl
}