summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9aa30260840d5e24e094a696f9885f74313586ba (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-gitdiff
_name=${pkgname#python-}
pkgver=0.0.4
pkgrel=0
epoch=
pkgdesc="Simple visual diff for kicad 7 or higher. one can easily extend this tool to build a diff-er for anything that outputs svg."
arch=('any')
url="https://pypi.org/project/kicad-gitdiff"
license=(Apache-2.0)
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=('e9d709d31dc57cb9e102492f6b5bceeed05affd466aeeaf42af37c6f4cf1946c')

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

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