diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..7bf28df04daa --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,38 @@ +# Maintainer: Grey Christoforo <first name at last name dot net> + +pkgname=kicad-rc +_pkgver="5.0.0-rc3" +pkgver=${_pkgver//-} +pkgrel=1 +pkgdesc="Official KiCad release candidates and dev snapshots" +arch=('any') +url="http://kicad-pcb.org/" +license=('GPL3') +depends=('glew' 'wxgtk' 'desktop-file-utils' 'boost-libs' 'python' 'glm' 'curl' 'swig' 'wxpython' 'oce' 'ngspice>=27' 'kicad-footprints' 'kicad-symbols' 'kicad-packages3d') +makedepends=('cmake' 'git' 'zlib' 'mesa' 'boost') +conflicts=('kicad' 'kicad-git' 'kicad-scripting-git' 'kicad-bzr') +provides=('kicad') +_github_project='kicad-source-mirror' +source=("https://github.com/KiCad/${_github_project}/archive/${_pkgver}.tar.gz") +md5sums=('b38154bec7b7873e11a48df0ce33878a') +install=kicad.install + +build() { + cd "${srcdir}/${_github_project}-${_pkgver}" + mkdir -p build + cd build + cmake .. -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DUSE_WX_GRAPHICS_CONTEXT=OFF \ + -DUSE_WX_OVERLAY=OFF \ + -DKICAD_SCRIPTING_ACTION_MENU=ON + + make +} + +package() { + cd "${srcdir}/${_github_project}-${_pkgver}" + cd build + make DESTDIR="${pkgdir}" install +} |