diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2015-06-16 01:46:34 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2015-06-16 01:46:34 -0300 |
commit | 01041a35102946f78a22272a9ba82967cbfd16b7 (patch) | |
tree | 6afcd7bc080bb9cc88cccd75b4da7a03e1113438 /pcr | |
parent | e2f05e99806b7afdb2587b31ac0d6788bf9b7e34 (diff) |
kicad-bzr: add new package to [pcr] -> https://labs.parabola.nu/issues/741
Diffstat (limited to 'pcr')
-rw-r--r-- | pcr/kicad-bzr/PKGBUILD | 49 | ||||
-rw-r--r-- | pcr/kicad-bzr/kicad.install | 15 |
2 files changed, 64 insertions, 0 deletions
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 <keenerd@gmail.com> +# Contributor (Arch): Marq Schneider <queueRAM@gmail.com> + +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 +} |