summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1f9987bb630aac55e6e87aa1c207eeb4ec6bb00a (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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# Maintainer: taotieren <admin@taotieren.com>

pkgname=kicad-hq
_name=${pkgname%-hq}
pkgver=8.0.6
_pkgver=${pkgver}-hq
pkgrel=1
pkgdesc="Electronic schematic and printed circuit board (PCB) design tools"
arch=('i686' 'x86_64')
url="https://gitlab.com/kicad-hq/kicad"
license=('GPL-3.0-or-later')
depends=(
  'curl'
  'freetype2'
  'fontconfig'
  'gcc-libs'
  'glib2'
  'glibc'
  'glu'
  'gtk3'
  'libglvnd'
  'harfbuzz'
  'hicolor-icon-theme'
  'opencascade'
  'python'
  'python-wxpython'
  'wayland'
  'wxwidgets-gtk3'
  'wxwidgets-common'
  'unixodbc'
  'libgit2'
  'zlib'
  #   'nng'
)
makedepends=(
  'boost-libs'
  'cmake'
  'glew'
  'glm'
  'mesa'
  'boost'
  'swig'
  'ngspice'
  'ninja'
  'protobuf'
)
optdepends=('kicad-library: KiCad symbol, footprint and template libraries'
  'kicad-library: KiCad 3D model libraries')
conflicts=(${pkgname} 'kicad' 'kicad-bzr')
provides=(${pkgname} 'kicad' 'kicad-bzr')
source=("${_name}-${_pkgver}.tar.gz::https://gitlab.com/kicad-hq/kicad/-/archive/${_pkgver}/${_name}-${_pkgver}.tar.gz")
sha256sums=('60dda38272ef78c6d996c0d91ad95b1ae0693ad90d17e4864f5aa1c6f8a13cf6')

build() {
  cd "${srcdir}/${_name}-${_pkgver}"

  cmake -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DKICAD_USE_OCC=ON \
    -DKICAD_USE_EGL=ON \
    -DKICAD_SCRIPTING_WXPYTHON=ON \
    -DKICAD_BUILD_I18N=ON \
    -DKICAD_I18N_UNIX_STRICT_PATH=ON \
    -DKICAD_BUILD_QA_TESTS=OFF \
    -DFMT_INSTALL=OFF \
    -Bbuild \
    -GNinja \
    -Wno-dev

  ninja -C build
}

package() {
  DESTDIR="$pkgdir" ninja -C ${srcdir}/${_name}-${_pkgver}/build install
}