backports/*: sync with 3.19 testing #278
1 changed files with 0 additions and 76 deletions
|
@ -1,76 +0,0 @@
|
|||
# Maintainer: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
|
||||
# Contributor: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
|
||||
pkgname=kicad
|
||||
pkgver=7.0.7
|
||||
pkgrel=0
|
||||
pkgdesc="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() {
|
||||
# XXX: GLIBCXX_ASSERTIONS causes link errors and symbols are missing
|
||||
# -DKICAD_STDLIB_LIGHT_DEBUG also enables this, maybe that works instead
|
||||
CFLAGS="$CFLAGS -O2" \
|
||||
CXXFLAGS="$CXXFLAGS -U_GLIBCXX_ASSERTIONS -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|qa_common|qa_pcbnew)'
|
||||
}
|
||||
|
||||
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="
|
||||
f3c00e682b658de042e5d7c0bf8ebc8a27a078a38e49620b385c818a02667e7d9366a7b44fe8531412c0b02ca3e9a542a69a7c69006740e059c1ce5a4f7fdff3 kicad-7.0.7.tar.gz
|
||||
"
|
Loading…
Reference in a new issue