blob: fcdb93f6de8f29378916fbaa9c7f755398c7e5a7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# Maintainer: Nick Østergaard <oe.nick at gmail dot com>
pkgname=kicad-git
pkgver=8.99.0.r1825.gb38357a5ea
pkgrel=1
pkgdesc="Electronic schematic and printed circuit board (PCB) design tools"
arch=('i686' 'x86_64')
url="https://kicad.org/"
license=('GPL')
depends=('glew' 'wxwidgets-gtk3' 'desktop-file-utils' 'boost-libs' 'python'
'glm' 'curl' 'swig' 'python-wxpython' 'opencascade'
'ngspice>=27' 'unixodbc' 'libgit2' 'protobuf' 'zstd')
makedepends=('cmake' 'git' 'zlib' 'mesa' 'boost')
optdepends=('kicad-library: for footprints')
conflicts=('kicad' 'kicad-bzr')
provides=('kicad')
install=kicad.install
source=("${pkgname}"'::git+https://gitlab.com/kicad/code/kicad.git')
md5sums=('SKIP')
pkgver() {
cd "${srcdir}/${pkgname}"
git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "${srcdir}/${pkgname}"
mkdir -p build
cd build
cmake .. -DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DKICAD_USE_EGL=ON \
-DCMAKE_EXE_LINKER_FLAGS=-fuse-ld=gold \
-DKICAD_SCRIPTING_WXPYTHON_PHOENIX=ON
make
}
package() {
cd "${srcdir}/${pkgname}"
cd build
make DESTDIR="${pkgdir}" install
}
|