summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 91ee7025300967e2f15100c2fed2846626116741 (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
# Maintainer: taotieren <admin@taotieren.com>

pkgname=python-kicad-package-manager
_name=${pkgname#python-}
pkgver=0.0.23
pkgrel=0
epoch=
pkgdesc="This is a package manager for KiCad symbols, footprints, 3d models, simulation files, and hierarchical sheets."
arch=('any')
url="https://pypi.org/project/kicad-package-manager"
license=(MIT)
groups=()
provides=(${_name})
conflicts=(${_name})
depends=(python
)
makedepends=(python-build
            python-installer
            python-wheel
            python-setuptools)
options=('!strip')
source=("${_name//-/_}-${pkgver}.tar.gz::https://files.pythonhosted.org/packages/source/${_name::1}/$_name/${_name//-/_}-$pkgver.tar.gz")
noextract=()
sha256sums=('92d1f21decfda64594b9a2d3967bd38d77565ca084fca9c3c95621ac10809629')

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

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