summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorGrey Christoforo2018-07-11 16:54:30 +0100
committerGrey Christoforo2018-07-11 16:56:02 +0100
commita29a1de1cc35f084fbeb84582e06e7ead2d626a4 (patch)
tree1c2a050a4321b47b48a83dd7920b2837e2ff928d
downloadaur-a29a1de1cc35f084fbeb84582e06e7ead2d626a4.tar.gz
initial commit
add srcinfo
-rw-r--r--.SRCINFO37
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD38
-rw-r--r--kicad.install15
4 files changed, 94 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..c1464f8f874
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,37 @@
+pkgbase = kicad-rc
+ pkgdesc = Official KiCad release candidates and dev snapshots
+ pkgver = 5.0.0rc3
+ pkgrel = 1
+ url = http://kicad-pcb.org/
+ install = kicad.install
+ arch = any
+ license = GPL3
+ makedepends = cmake
+ makedepends = git
+ makedepends = zlib
+ makedepends = mesa
+ makedepends = boost
+ depends = glew
+ depends = wxgtk
+ depends = desktop-file-utils
+ depends = boost-libs
+ depends = python
+ depends = glm
+ depends = curl
+ depends = swig
+ depends = wxpython
+ depends = oce
+ depends = ngspice>=27
+ depends = kicad-footprints
+ depends = kicad-symbols
+ depends = kicad-packages3d
+ provides = kicad
+ conflicts = kicad
+ conflicts = kicad-git
+ conflicts = kicad-scripting-git
+ conflicts = kicad-bzr
+ source = https://github.com/KiCad/kicad-source-mirror/archive/5.0.0-rc3.tar.gz
+ md5sums = b38154bec7b7873e11a48df0ce33878a
+
+pkgname = kicad-rc
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..93f5d9f2777
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+pkg/
+src/
+*.tar.gz
+*.tar.xz
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..7bf28df04da
--- /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
+}
diff --git a/kicad.install b/kicad.install
new file mode 100644
index 00000000000..1ebe441b5f7
--- /dev/null
+++ b/kicad.install
@@ -0,0 +1,15 @@
+pkgname=kicad-rc
+
+post_install() {
+ gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
+ update-mime-database usr/share/mime > /dev/null
+ update-desktop-database -q
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+post_remove() {
+ post_install $1
+}