summaryrefslogtreecommitdiff
path: root/community/kicad/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/kicad/PKGBUILD')
-rw-r--r--community/kicad/PKGBUILD26
1 files changed, 20 insertions, 6 deletions
diff --git a/community/kicad/PKGBUILD b/community/kicad/PKGBUILD
index 6818b5de5..2d1b3ea43 100644
--- a/community/kicad/PKGBUILD
+++ b/community/kicad/PKGBUILD
@@ -1,4 +1,4 @@
-# $Id: PKGBUILD 92569 2013-06-08 18:17:35Z kkeen $
+# $Id: PKGBUILD 103943 2014-01-13 20:00:42Z kkeen $
# Maintainer: Kyle Keen <keenerd@gmail.com>
# Contributor: Marq Schneider <queueRAM@gmail.com>
@@ -6,25 +6,34 @@ pkgname=kicad
pkgver=20130518
_pkgver=${pkgver:0:4}-${pkgver:4:2}-${pkgver:6:2}
_pkgbzr=4017
-pkgrel=1
+pkgrel=3
pkgdesc="Electronic schematic and printed circuit board (PCB) design tools"
arch=('i686' 'x86_64' 'mips64el')
url="http://iut-tice.ujf-grenoble.fr/kicad/"
license=('GPL')
-depends=('glu' 'wxgtk' 'hicolor-icon-theme' 'desktop-file-utils')
+depends=('glu' 'wxgtk2.8' 'hicolor-icon-theme' 'desktop-file-utils' 'libsm')
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)
+ kicad-boost-polygon-declare-gtlsort-earlier.patch
+ wxgtk3.0.patch)
md5sums=('9e6aab0f2ad01a17c8ec96cd9162dc79'
- 'a2c39704238946e74a5ed0c38326345f')
+ 'a2c39704238946e74a5ed0c38326345f'
+ 'ec3e7581c814ca2b76becc7b30a8529f')
+
+#source=(https://launchpad.net/ubuntu/trusty/+source/kicad/0.${pkgver}+bzr${_pkgbzr}-2/+files/kicad_0.${pkgver}+bzr${_pkgbzr}.orig.tar.gz)
+# patches from https://launchpad.net/ubuntu/trusty/+source/kicad/0.20130727+bzr4024-2/+files/kicad_0.20130727+bzr4024-2.debian.tar.gz ?
build() {
cd "$srcdir/stable_${_pkgver}_BZR${_pkgbzr}"
+ # kicad-boost-polygon-declare-gtlsort-earlier.patch
+ #sed -i '20i #include "detail/polygon_sort_adaptor.hpp"' include/boost/polygon/polygon.hpp
patch -p0 < "$srcdir/kicad-boost-polygon-declare-gtlsort-earlier.patch"
+ #patch -p1 < "$srcdir/wxgtk3.0.patch"
+ #sed -i 's/wxStandardPaths/&::Get/' common/edaappl.cpp
# harmless build blocking error
# see https://lists.launchpad.net/kicad-developers/msg07841.html
@@ -37,9 +46,13 @@ build() {
# build and install kicad
mkdir -p build/Release
cd build/Release
+ # STABLE_VERSION gets removed, eventually
+ # gets ported to wxgtk3, eventually
cmake ../.. -DKICAD_STABLE_VERSION=ON \
-DCMAKE_BUILD_TYPE=Release \
- -DCMAKE_INSTALL_PREFIX=/usr
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DwxWidgets_CONFIG_EXECUTABLE='/usr/bin/wx-config-2.8' \
+ -DwxWidgets_wxrc_EXECUTABLE='/usr/bin/wxrc32-2.8'
make
}
@@ -52,3 +65,4 @@ package() {
#cp -r -n "$srcdir/$pkgname-icons/resources/linux/mime/icons" "$pkgdir/usr/share/"
}
+