aboutsummaryrefslogtreecommitdiffstats
path: root/testing/kicad/APKBUILD
blob: aa1fb06412cf45c5c08626ba9de27cc663a8f7b9 (plain) (blame)
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# Maintainer: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
# Contributor: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
pkgname=kicad
pkgver=5.1.5
pkgrel=0
pkgdesc="A Cross Platform and Open Source Electronics Design Automation Suite"
url="http://kicad-pcb.org/"
arch="x86_64" # Dependency opencascade is x86_64 only
license="GPL-3.0-or-later"
makedepends="
	boost-dev
	cairo-dev
	cmake
	curl-dev
	glew-dev
	glm-dev
	ngspice-dev
	opencascade-dev
	py3-wxpython
	python3-dev
	swig
	vtk-dev
	wxgtk-base-dev
	wxgtk3-dev
	zlib-dev
	"
depends="python3"
subpackages="$pkgname-i18n:i18n:noarch $pkgname-doc"
source="
	https://launchpad.net/kicad/5.0/$pkgver/+download/kicad-$pkgver.tar.xz
	kicad-i18n.$pkgver.tar.gz::https://github.com/KiCad/kicad-i18n/archive/$pkgver.tar.gz
	"

build() {
	mkdir -p build
	cd build
	cmake .. \
		-DCMAKE_BUILD_TYPE=Release \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DKICAD_USE_OCE=OFF \
		-DKICAD_USE_OCC=ON \
		-DKICAD_SCRIPTING=ON \
		-DKICAD_SCRIPTING_PYTHON3=ON  \
		-DKICAD_SCRIPTING_MODULES=ON  \
		-DKICAD_SCRIPTING_WXPYTHON=ON \
		-DKICAD_SCRIPTING_ACTION_MENU=ON \
		-DKICAD_SCRIPTING_WXPYTHON_PHOENIX=ON \
		-DwxWidgets_CONFIG_EXECUTABLE=/usr/bin/wx-config-gtk3 \
		-DwxWidgets_INCLUDE_DIRS=/usr/include \
		-DBUILD_GITHUB_PLUGIN=ON
	make
	cd "$srcdir"/kicad-i18n-$pkgver
	mkdir -p build
	cd build
	cmake .. -DCMAKE_INSTALL_PREFIX=/usr
	make
}

check() {
	cd build
	make test
}

package() {
	cd build
	make DESTDIR="$pkgdir" install
}

i18n() {
	cd "$srcdir"/kicad-i18n-$pkgver/build
	make DESTDIR="$subpkgdir" install
}
sha512sums="5ca19e219da07a906f13e236849eb4497c9f827726a5cd13aceffe1d8c7dee480823bf3e949527f59a805eb3b8176fad51576ae663dd07b10e2822f2b37866a5  kicad-5.1.5.tar.xz
68e6602fcc7e73c22a594b45ecf53a956af8a134e28e86242bfaa4087df21c04b24ae4df9928f00c2cee7eb0631a02a4de1cd09547b36a466fb324f983ea5363  kicad-i18n.5.1.5.tar.gz"