backports/kicad: new aport
This commit is contained in:
parent
9526b1de38
commit
4a62a26545
1 changed files with 74 additions and 0 deletions
74
backports/kicad/APKBUILD
Normal file
74
backports/kicad/APKBUILD
Normal file
|
@ -0,0 +1,74 @@
|
|||
# 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
|
||||
"
|
Loading…
Reference in a new issue