summaryrefslogtreecommitdiff
path: root/gnome-unstable/anjuta
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2011-09-22 23:14:43 +0000
committerroot <root@rshg054.dnsready.net>2011-09-22 23:14:43 +0000
commit919a63ffc80158b2a5610fa87eb51fd5f8f724ba (patch)
treec33a4966d6efeeb95d903135603c9a402e0d22cb /gnome-unstable/anjuta
parentb7f839da11975b9f2a964a82d591b7a8628f0931 (diff)
Thu Sep 22 23:14:43 UTC 2011
Diffstat (limited to 'gnome-unstable/anjuta')
-rw-r--r--gnome-unstable/anjuta/PKGBUILD35
-rw-r--r--gnome-unstable/anjuta/anjuta.install21
2 files changed, 56 insertions, 0 deletions
diff --git a/gnome-unstable/anjuta/PKGBUILD b/gnome-unstable/anjuta/PKGBUILD
new file mode 100644
index 000000000..f2a818e58
--- /dev/null
+++ b/gnome-unstable/anjuta/PKGBUILD
@@ -0,0 +1,35 @@
+# $Id: PKGBUILD 138381 2011-09-21 12:37:46Z heftig $
+# Maintainer: Andreas Radke <andyrtr@archlinux.org>
+# Contributor: Harley Laue <losinggeneration@yahoo.com>
+
+pkgname=anjuta
+pkgver=3.1.92
+pkgrel=1
+pkgdesc="GNOME Integrated Development Environment (IDE)"
+arch=('i686' 'x86_64')
+license=('GPL')
+depends=('vte3' 'gdl' 'autogen' 'devhelp' 'glade' 'libgda' 'subversion'
+ 'gnome-icon-theme' 'hicolor-icon-theme' 'vala' 'python2'
+ 'shared-mime-info' 'desktop-file-utils')
+makedepends=('gnome-doc-utils' 'intltool' 'gobject-introspection')
+url="http://anjuta.sourceforge.net/"
+install=anjuta.install
+source=(ftp://ftp.gnome.org/pub/gnome/sources/${pkgname}/${pkgver%.*}/${pkgname}-${pkgver}.tar.xz)
+options=('!libtool' '!emptydirs')
+sha256sums=('b9c2fe1e11f9df449e15cdc1e37590d582360b79b1a970db9518935ea97bec12')
+
+build() {
+ cd "${srcdir}/anjuta-${pkgver}"
+ PYTHON=/usr/bin/python2 ./configure --prefix=/usr --sysconfdir=/etc \
+ --localstatedir=/var --disable-scrollkeeper
+ make
+}
+
+package(){
+ cd "${srcdir}/anjuta-${pkgver}"
+
+ make DESTDIR="${pkgdir}" install
+
+ sed -i "1s|#!/usr/bin/python$|&2|" \
+ $pkgdir/usr/share/anjuta/project/{pygtk,python}/src/main.py
+}
diff --git a/gnome-unstable/anjuta/anjuta.install b/gnome-unstable/anjuta/anjuta.install
new file mode 100644
index 000000000..c6fcfec11
--- /dev/null
+++ b/gnome-unstable/anjuta/anjuta.install
@@ -0,0 +1,21 @@
+post_install() {
+ usr/bin/glib-compile-schemas usr/share/glib-2.0/schemas
+ update-desktop-database -q
+ gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
+ gtk-update-icon-cache -q -t -f usr/share/icons/gnome
+ update-mime-database usr/share/mime > /dev/null
+}
+
+pre_upgrade() {
+ if (( $(vercmp $2 2.90.0) < 0 )); then
+ usr/sbin/gconfpkg --uninstall anjuta
+ fi
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}