summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e418fb203f3855a7bdd3114817228da8a596e444 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Maintainer: taotieren <admin@taotieren.com>
# Contributor: Caleb Jamison <cbjamo@gmail.com>

pkgname=python-kinparse
pkgver=1.2.4
pkgrel=5
pkgdesc="Parser for KiCad schematic netlists."
arch=(any)
url="https://github.com/devbisme/kinparse"
license=('MIT')
groups=()
depends=(
  python
  python-pyparsing
)
makedepends=(
  python-build
  python-installer
  python-wheel
  python-setuptools
)
options=(!emptydirs '!strip')
_name=${pkgname#python-}
source=(https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz)
sha256sums=('29e9c99996e0d9374a57f82f391638e2a98edcf3581a55f40d04ca2b1954b2a8')

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

package() {
  cd "$srcdir/$_name-$pkgver"
  python -m installer --destdir="${pkgdir}" dist/*.whl
  install -Dm644 LICENSE -t \
    "$pkgdir"/usr/share/licenses/$pkgname/
}