# Maintainer: Marian Buschsieweke # Contributor: Marian Buschsieweke pkgname=kicad pkgver=5.1.4 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="ce0efb740686eafdbbdf8cda68ad800a70c8991302f984be3db4bbdb3bfafe1634871ec6ea26bb6854a417db6336880e5a043dc022ef8126c0e98abc90671337 kicad-5.1.4.tar.xz 28993e0021ebd7f3c0e7e21b609f57b85b95c74c33d65d30e707c5194b340dbb46142a6250a19256c927dc2f0600a7e1de723aefa9e74b2761ebc7c380143527 kicad-i18n.5.1.4.tar.gz"