Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Maintainer: Nick Østergaard <oe.nick at gmail dot com>
- pkgname=kicad-git
- pkgver=r12142.decc7ed88
- pkgrel=1
- pkgdesc="Electronic schematic and printed circuit board (PCB) design tools"
- arch=('i686' 'x86_64')
- url="http://kicad-pcb.org/"
- license=('GPL')
- depends=('glew' 'wxgtk' 'desktop-file-utils' 'boost-libs' 'python'
- 'glm' 'curl' 'swig' 'python-wxpython' 'opencascade' 'ngspice>=27')
- makedepends=('cmake' 'git' 'zlib' 'mesa' 'boost' 'clang')
- optdepends=('kicad-library: for footprints')
- conflicts=('kicad' 'kicad-bzr')
- provides=('kicad')
- install=kicad.install
- source=("${pkgname}"'::git+https://git.launchpad.net/kicad')
- md5sums=('SKIP')
- pkgver() {
- cd "${srcdir}/${pkgname}"
- printf "r%s.%s" "$(git rev-list HEAD --count --first-parent)" "$(git rev-parse --short HEAD)"
- }
- build() {
- cd "${srcdir}/${pkgname}"
- mkdir -p build
- cd build
- export CXX=clang++
- cmake .. -DCMAKE_BUILD_TYPE=RelWithDebInfo \
- -DCMAKE_INSTALL_PREFIX=/usr \
- -DCMAKE_INSTALL_LIBDIR=lib \
- -DOCE_DIR=`dirname $(pacman -Ql oce | grep OCEConfig.cmake | awk '{ print $2 }' )` \
- -DBUILD_GITHUB_PLUGIN=ON \
- -DKICAD_SCRIPTING=ON \
- -DKICAD_SCRIPTING_MODULES=ON \
- -DKICAD_SCRIPTING_PYTHON3=ON \
- -DPYTHON_EXECUTABLE=/bin/python3 \
- -DKICAD_SCRIPTING_WXPYTHON_PHOENIX=ON \
- -DKICAD_SCRIPTING_WXPYTHON=ON \
- -DKICAD_SCRIPTING_ACTION_MENU=ON
- make
- }
- package() {
- cd "${srcdir}/${pkgname}"
- cd build
- make DESTDIR="${pkgdir}" install
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement