summaryrefslogtreecommitdiff
path: root/pcr/gnoduino
diff options
context:
space:
mode:
authorcoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2014-12-24 19:06:06 -0200
committercoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2014-12-24 19:06:06 -0200
commit76e06d3e62547b1f0bcebf2bd30d234aa6ee49cc (patch)
tree922d0e5c8d30a238f8ebbff6ceed6de68134f073 /pcr/gnoduino
parent9935897983aa8b3b6b3e59951bcd19663842d2dc (diff)
parenta2fdccac85fa2126556b6dd0a052a9ddb9cb93ee (diff)
downloadabslibre-76e06d3e62547b1f0bcebf2bd30d234aa6ee49cc.tar.gz
abslibre-76e06d3e62547b1f0bcebf2bd30d234aa6ee49cc.tar.bz2
abslibre-76e06d3e62547b1f0bcebf2bd30d234aa6ee49cc.zip
Merge branch 'master' of ssh://projects.parabola.nu:1863/~git/abslibre/abslibre
Diffstat (limited to 'pcr/gnoduino')
-rw-r--r--pcr/gnoduino/PKGBUILD42
-rw-r--r--pcr/gnoduino/gnoduino.install23
2 files changed, 65 insertions, 0 deletions
diff --git a/pcr/gnoduino/PKGBUILD b/pcr/gnoduino/PKGBUILD
new file mode 100644
index 000000000..329c5a5bd
--- /dev/null
+++ b/pcr/gnoduino/PKGBUILD
@@ -0,0 +1,42 @@
+# Maintainer : Aurelien Desbriers <aurelien@hackers.camp>
+# Contributor: speps <speps at aur dot archlinux dot org>
+
+pkgname=gnoduino
+pkgver=0.5.1
+pkgrel=1
+pkgdesc="An implementation of well-known Arduino IDE for GNOME"
+arch=(any)
+url="http://gnome.eu.org/index.php/Gnoduino"
+license=('GPL')
+depends=('avr-libc' 'avrdude' 'avr-binutils' 'gcc-avr' 'pyxdg'
+ 'pygtksourceview2' 'python2-pyserial'
+ 'python2-gconf' 'desktop-file-utils')
+makedepends=('python2-distribute')
+install="$pkgname.install"
+source=("http://gnome.eu.org/$pkgname-$pkgver.tar.gz")
+
+prepare() {
+ cd $pkgname-$pkgver
+
+ # do not install gconf schema
+ sed -i "/installSchema.*)$/d" setup.py
+
+ # python2 shebang
+ sed -i "s|bin/python$|&2|" `find . -name "*.py"`
+}
+
+build() {
+ cd $pkgname-$pkgver
+ python2 setup.py build
+}
+
+package() {
+ cd $pkgname-$pkgver
+ python2 setup.py install --root="$pkgdir/"
+
+ # gconf schema
+ install -Dm644 data/$pkgname.schemas \
+ "$pkgdir/usr/share/gconf/schemas/$pkgname.schemas"
+}
+
+# vim:set ts=2 sw=2 et:
diff --git a/pcr/gnoduino/gnoduino.install b/pcr/gnoduino/gnoduino.install
new file mode 100644
index 000000000..fd110bee7
--- /dev/null
+++ b/pcr/gnoduino/gnoduino.install
@@ -0,0 +1,23 @@
+pkgname=gnoduino
+
+post_install() {
+ usr/sbin/gconfpkg --install ${pkgname}
+ post_remove
+}
+
+pre_upgrade() {
+ pre_remove
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ usr/sbin/gconfpkg --uninstall ${pkgname}
+}
+
+post_remove() {
+ gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
+ update-desktop-database -q
+}