Advertisement
Guest User

Untitled

a guest
Jan 11th, 2019
322
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.47 KB | None | 0 0
  1. # Maintainer: Nick Østergaard <oe.nick at gmail dot com>
  2.  
  3. pkgname=kicad-git
  4. pkgver=r12142.decc7ed88
  5. pkgrel=1
  6. pkgdesc="Electronic schematic and printed circuit board (PCB) design tools"
  7. arch=('i686' 'x86_64')
  8. url="http://kicad-pcb.org/"
  9. license=('GPL')
  10. depends=('glew' 'wxgtk' 'desktop-file-utils' 'boost-libs' 'python'
  11.          'glm' 'curl' 'swig' 'python-wxpython' 'opencascade' 'ngspice>=27')
  12. makedepends=('cmake' 'git' 'zlib' 'mesa' 'boost' 'clang')
  13. optdepends=('kicad-library: for footprints')
  14. conflicts=('kicad' 'kicad-bzr')
  15. provides=('kicad')
  16. install=kicad.install
  17. source=("${pkgname}"'::git+https://git.launchpad.net/kicad')
  18. md5sums=('SKIP')
  19.  
  20. pkgver() {
  21.   cd "${srcdir}/${pkgname}"
  22.   printf "r%s.%s" "$(git rev-list HEAD --count --first-parent)" "$(git rev-parse --short HEAD)"
  23. }
  24.  
  25. build() {
  26.   cd "${srcdir}/${pkgname}"
  27.   mkdir -p build
  28.   cd build
  29.   export CXX=clang++
  30.   cmake .. -DCMAKE_BUILD_TYPE=RelWithDebInfo \
  31.     -DCMAKE_INSTALL_PREFIX=/usr \
  32.     -DCMAKE_INSTALL_LIBDIR=lib \
  33.     -DOCE_DIR=`dirname $(pacman -Ql oce | grep OCEConfig.cmake | awk '{ print $2 }' )` \
  34.     -DBUILD_GITHUB_PLUGIN=ON \
  35.     -DKICAD_SCRIPTING=ON \
  36.     -DKICAD_SCRIPTING_MODULES=ON \
  37.     -DKICAD_SCRIPTING_PYTHON3=ON \
  38.     -DPYTHON_EXECUTABLE=/bin/python3 \
  39.     -DKICAD_SCRIPTING_WXPYTHON_PHOENIX=ON \
  40.     -DKICAD_SCRIPTING_WXPYTHON=ON \
  41.     -DKICAD_SCRIPTING_ACTION_MENU=ON
  42.  
  43.   make
  44. }
  45.  
  46. package() {
  47.   cd "${srcdir}/${pkgname}"
  48.   cd build
  49.   make DESTDIR="${pkgdir}" install
  50. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement