From 01041a35102946f78a22272a9ba82967cbfd16b7 Mon Sep 17 00:00:00 2001 From: André Fabian Silva Delgado Date: Tue, 16 Jun 2015 01:46:34 -0300 Subject: kicad-bzr: add new package to [pcr] -> https://labs.parabola.nu/issues/741 --- pcr/kicad-bzr/PKGBUILD | 49 +++++++++++++++++++++++++++++++++++++++++++++ pcr/kicad-bzr/kicad.install | 15 ++++++++++++++ 2 files changed, 64 insertions(+) create mode 100644 pcr/kicad-bzr/PKGBUILD create mode 100644 pcr/kicad-bzr/kicad.install (limited to 'pcr/kicad-bzr') diff --git a/pcr/kicad-bzr/PKGBUILD b/pcr/kicad-bzr/PKGBUILD new file mode 100644 index 000000000..b518a5795 --- /dev/null +++ b/pcr/kicad-bzr/PKGBUILD @@ -0,0 +1,49 @@ +# Maintainer (Arch): Kyle Keen +# Contributor (Arch): Marq Schneider + +pkgname=kicad-bzr +pkgver=r5755 +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=('glew' 'wxgtk' 'hicolor-icon-theme' 'desktop-file-utils' 'boost-libs') +makedepends=('cmake' 'bzr' 'zlib' 'mesa' 'boost') +optdepends=('kicad-docs-bzr: for documentation' + 'kicad-library-bzr: for footprints' + 'git: github pcb plugin') +conflicts=('kicad') +provides=('kicad') +install=kicad.install +source=('bzr+lp:kicad') +md5sums=('SKIP') +_bzrmod=kicad + +# mkdir -p "$pkgdir/etc/profile.d" +# echo "export KIGITHUB=https://github.com/KiCad" > "$pkgdir/etc/profile.d/kicad.sh" +# https://github.com/blairbonnett-mirrors/kicad/blob/master/scripts/kicad-install.sh + +pkgver() { + cd "$srcdir/$_bzrmod" + echo "r$(bzr revno)" +} + +build() { + cd "$srcdir/$_bzrmod" + mkdir -p build/Release + cd build/Release + # -DKICAD_SKIP_BOOST=ON ? + # -DKICAD_SCRIPTING=ON -DKICAD_SCRIPTING_MODULES=ON ? + # -DKICAD_SCRIPTING_WXPYTHON=ON ? + cmake ../.. -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DKICAD_SKIP_BOOST=ON \ + -DBUILD_GITHUB_PLUGIN=ON + make #-j1 +} + +package() { + cd "$srcdir/$_bzrmod/build/Release" + make DESTDIR="$pkgdir" install +} diff --git a/pcr/kicad-bzr/kicad.install b/pcr/kicad-bzr/kicad.install new file mode 100644 index 000000000..628d97b98 --- /dev/null +++ b/pcr/kicad-bzr/kicad.install @@ -0,0 +1,15 @@ +pkgname=kicad-bzr + +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 +} -- cgit v1.2.3-54-g00ecf