summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 561afa0c1ecac0e41a3db82ac3aad43dfd07ee9a (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
39
40
41
42
43
44
45
46
# Maintainer: taotieren <admin@taotieren.com>

pkgbase=kicad-pcb-diff
pkgname=kicad-pcb-diff
_name=kidiff
pkgver=2.5.5
pkgrel=1
epoch=
pkgdesc="Tool to generate a PDF file showing the changes between two KiCad PCB/SCH files. Also a git plug-in."
arch=('any')
url="https://pypi.org/project/kidiff"
license=('GPL-2.0-or-later')
groups=()
depends=(python
    kicad
    #     python-wxpython
    #     imagemagick
    #     librsvg
    #     poppler
    #     xdg-utils
)
makedepends=(python-{build,installer}
    python-setuptools-scm
    python-wheel)
optdepends=("kiauto-git: KiCad automation scripts.")
provides=('kidiff' 'kicad-diff' 'kicad-pcb-diff' 'python-kidiff')
conflicts=('kidiff' 'kicad-diff' 'kicad-pcb-diff' 'python-kidiff')
replaces=()
backup=()
options=('!strip' '!debug')
install=
changelog=
source=("${_name}-${pkgver}.tar.gz::https://files.pythonhosted.org/packages/source/${_name::1}/${_name//-/_}/${_name//-/_}-${pkgver}.tar.gz")
noextract=()
sha256sums=('e90c0e13cf2eefc375495cebbd470b427a739c824e6a7ea8a7c926b74be753e4')
#validpgpkeys=()

build() {
    cd "${srcdir}/${_name}-${pkgver}"
    python -m build -wn
}

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