ayaports/backports/kicad/APKBUILD

74 lines
1.7 KiB
Text

# Maintainer: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
# Contributor: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
pkgname=kicad
pkgver=7.0.2
pkgrel=0
pkgdesc="A Cross Platform and Open Source Electronics Design Automation Suite"
url="https://www.kicad.org/"
# No support for s390x/riscv64 in libcontext (shipped with kicad)
# 32-bit arm: memory alignment access error in tests
arch="all !armhf !armv7 !riscv64 !s390x"
license="GPL-3.0-or-later"
makedepends="
boost-dev
cairo-dev
chrpath
cmake
curl-dev
glew-dev
glm-dev
ngspice-dev
opencascade-dev
py3-wxpython
python3-dev
samurai
swig
unixodbc-dev
wxwidgets-dev
zlib-dev
"
depends="python3"
subpackages="$pkgname-doc"
source="
https://gitlab.com/kicad/code/kicad/-/archive/$pkgver/kicad-$pkgver.tar.gz
"
provides="$pkgname-opencascade=$pkgver-r$pkgrel"
replaces="$pkgname-opencascade"
build() {
CFLAGS="$CFLAGS -O2" \
CXXFLAGS="$CXXFLAGS -O2" \
cmake -B build -G Ninja -Wno-dev \
-DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DKICAD_USE_EGL=ON \
-DKICAD_SCRIPTING_WXPYTHON=ON \
-DKICAD_USE_BUNDLED_GLEW=ON
# build order workaround
cmake --build build --target common/pcb_lexer.h
cmake --build build
}
check() {
ctest --test-dir build --output-on-failure \
-E qa_eeschema
}
package() {
DESTDIR="$pkgdir" cmake --install build
local sitedir=$(python3 -c "import site; print(site.getsitepackages()[0])")
chrpath -d "$pkgdir/$sitedir"/_pcbnew.so
}
doc() {
default_doc
amove usr/share/kicad/demos
}
sha512sums="
8ad091d23b21f6b4cadede345a65799f83b995eb96ad0a66a85c5360002650634e5cbfc899e3e73b068cc0494445f940557eb280d8ec298f71519596e1350728 kicad-7.0.2.tar.gz
"