# Template file for 'kicad' # XXX: keep in sync with kicad-doc pkgname=kicad version=8.0.1 revision=2 build_style=cmake build_helper="cmake-wxWidgets-gtk3" configure_args="-DKICAD_SCRIPTING_WXPYTHON=ON -DKICAD_USE_EGL=ON -DKICAD_BUILD_I18N=ON -DKICAD_I18N_UNIX_STRICT_PATH=ON -DLEMON_EXE=/usr/bin/lemon" hostmakedepends="pkg-config swig wxWidgets-gtk3-devel tar gettext python3 python3-setuptools sqlite-lemon" makedepends="wxWidgets-gtk3-devel wxPython python3-devel glew-devel cairo-devel boost-devel libcurl-devel glm libgomp-devel libfreeglut-devel gtk+3-devel unixodbc-devel occt-devel ngspice-devel libgit2-devel libsecret-devel" depends="wxPython" checkdepends="python3-pytest python3-cairosvg" short_desc="Electronic schematic and PCB design software" maintainer="classabbyamp " license="GPL-3.0-or-later" homepage="http://kicad.org" changelog="https://www.kicad.org/blog/categories/Release-Notes/" distfiles="https://gitlab.com/kicad/code/kicad/-/archive/${version}/kicad-${version}.tar.gz" checksum="bd67568671d0461c7c85fb1d5979df1c863228ea05d4f0db462b1c93a5a948e5" python_version=3 replaces="kicad-i18n>=0" if [ "$CROSS_BUILD" ]; then hostmakedepends+=" wxPython" configure_args+=" -DPYTHON_DEST=/${py3_sitelib}" fi CXXFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" post_patch() { # python struct.calcsize('@P') return pointer size of build systems. sed -i 's/CMAKE_SIZEOF_VOID_P AND/FALSE AND &/' \ thirdparty/pybind11/tools/FindPythonLibsNew.cmake }