# Template file for 'kicad' # XXX: keep in sync with kicad-doc pkgname=kicad version=8.0.2 revision=1 build_style=cmake build_helper="cmake-wxWidgets-gtk3" configure_args="-DKICAD_SCRIPTING_WXPYTHON=ON -DKICAD_USE_EGL=ON -DKICAD_BUILD_QA_TESTS=OFF -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=406700e39ffe89bd80a4745c4f6e732cf1bda9791b9f32371ad9cf8e8ab80b56 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 }