From f4fbdd254aef93590febd2a8eee0e168792b94ca Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Fri, 24 Nov 2023 13:03:19 -0500 Subject: [PATCH] backports/kicad: now in community --- backports/kicad/APKBUILD | 76 ---------------------------------------- 1 file changed, 76 deletions(-) delete mode 100644 backports/kicad/APKBUILD diff --git a/backports/kicad/APKBUILD b/backports/kicad/APKBUILD deleted file mode 100644 index 4a09974..0000000 --- a/backports/kicad/APKBUILD +++ /dev/null @@ -1,76 +0,0 @@ -# Maintainer: Marian Buschsieweke -# Contributor: Marian Buschsieweke -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 -"