summaryrefslogtreecommitdiff
path: root/community/kicad
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-07-19 01:10:32 -0700
committerroot <root@rshg054.dnsready.net>2013-07-19 01:10:32 -0700
commit8fbc0076a4827ddc6af92e0b9daa4c4c31450808 (patch)
tree03fd0e2921ebd53228d9a93e32ed3976b636cbea /community/kicad
parente445a313723389ba9ee1fded025c567dae5b21ea (diff)
Fri Jul 19 01:09:18 PDT 2013
Diffstat (limited to 'community/kicad')
-rw-r--r--community/kicad/PKGBUILD54
-rw-r--r--community/kicad/kicad-boost-polygon-declare-gtlsort-earlier.patch11
-rw-r--r--community/kicad/kicad.install15
3 files changed, 80 insertions, 0 deletions
diff --git a/community/kicad/PKGBUILD b/community/kicad/PKGBUILD
new file mode 100644
index 000000000..e7c2708ee
--- /dev/null
+++ b/community/kicad/PKGBUILD
@@ -0,0 +1,54 @@
+# $Id: PKGBUILD 92569 2013-06-08 18:17:35Z kkeen $
+# Maintainer: Kyle Keen <keenerd@gmail.com>
+# Contributor: Marq Schneider <queueRAM@gmail.com>
+
+pkgname=kicad
+pkgver=20130518
+_pkgver=${pkgver:0:4}-${pkgver:4:2}-${pkgver:6:2}
+_pkgbzr=4017
+pkgrel=1
+pkgdesc="Electronic schematic and printed circuit board (PCB) design tools"
+arch=('i686' 'x86_64')
+url="http://iut-tice.ujf-grenoble.fr/kicad/"
+license=('GPL')
+depends=('glu' 'wxgtk' 'hicolor-icon-theme' 'desktop-file-utils')
+makedepends=('cmake' 'zlib' 'mesa')
+optdepends=('kicad-docs-bzr: for documentation'
+ 'kicad-library-bzr: for footprints')
+install=kicad.install
+source=(http://iut-tice.ujf-grenoble.fr/cao/${pkgname}-sources-stable_${_pkgver}_BZR${_pkgbzr}.zip
+ kicad-boost-polygon-declare-gtlsort-earlier.patch)
+md5sums=('9e6aab0f2ad01a17c8ec96cd9162dc79'
+ 'a2c39704238946e74a5ed0c38326345f')
+
+build() {
+ cd "$srcdir/stable_${_pkgver}_BZR${_pkgbzr}"
+
+ patch -p0 < "$srcdir/kicad-boost-polygon-declare-gtlsort-earlier.patch"
+
+ # harmless build blocking error
+ # see https://lists.launchpad.net/kicad-developers/msg07841.html
+ # for proper fix
+ sed -i 's|^#.*error "You must use|//&|' include/common.h
+
+ # FS#31559
+ sed -i 's/-O2/-O1/' CMakeLists.txt
+
+ # build and install kicad
+ mkdir -p build/Release
+ cd build/Release
+ cmake ../.. -DKICAD_STABLE_VERSION=ON \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr
+ make
+}
+
+package() {
+ cd "$srcdir/stable_${_pkgver}_BZR${_pkgbzr}/build/Release"
+
+ make DESTDIR="$pkgdir" install
+
+ # copy updated linux icons
+ #cp -r -n "$srcdir/$pkgname-icons/resources/linux/mime/icons" "$pkgdir/usr/share/"
+}
+
diff --git a/community/kicad/kicad-boost-polygon-declare-gtlsort-earlier.patch b/community/kicad/kicad-boost-polygon-declare-gtlsort-earlier.patch
new file mode 100644
index 000000000..b0c992297
--- /dev/null
+++ b/community/kicad/kicad-boost-polygon-declare-gtlsort-earlier.patch
@@ -0,0 +1,11 @@
+--- include/boost/polygon/polygon.hpp.orig 2012-04-09 13:07:03.293907598 -0500
++++ include/boost/polygon/polygon.hpp 2012-04-09 13:07:43.759923812 -0500
+@@ -24,6 +24,8 @@
+ #include "transform.hpp"
+ #include "detail/transform_detail.hpp"
+
++#include "detail/polygon_sort_adaptor.hpp"
++
+ //interval
+ #include "interval_data.hpp"
+ #include "interval_traits.hpp"
diff --git a/community/kicad/kicad.install b/community/kicad/kicad.install
new file mode 100644
index 000000000..7c21ff4c7
--- /dev/null
+++ b/community/kicad/kicad.install
@@ -0,0 +1,15 @@
+pkgname=kicad
+
+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
+}