summaryrefslogtreecommitdiff
path: root/extra/gobject-introspection/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'extra/gobject-introspection/PKGBUILD')
-rw-r--r--extra/gobject-introspection/PKGBUILD30
1 files changed, 30 insertions, 0 deletions
diff --git a/extra/gobject-introspection/PKGBUILD b/extra/gobject-introspection/PKGBUILD
new file mode 100644
index 000000000..c536fc824
--- /dev/null
+++ b/extra/gobject-introspection/PKGBUILD
@@ -0,0 +1,30 @@
+# $Id: PKGBUILD 104477 2011-01-03 16:00:03Z ibiru $
+# Maintainer: Jan de Groot <jgc@archlinux.org>
+pkgname=gobject-introspection
+pkgver=0.9.12
+pkgrel=1
+pkgdesc="Introspection system for GObject-based libraries"
+url="http://live.gnome.org/GObjectInstrospection"
+arch=('x86_64' 'i686')
+license=('LGPL' 'GPL')
+depends=('libffi>=3.0.9' 'glib2>=2.26.0' 'python2')
+makedepends=('cairo')
+conflicts=('gir-repository')
+replaces=('gir-repository')
+options=('!libtool')
+source=(http://ftp.gnome.org/pub/gnome/sources/${pkgname}/0.9/${pkgname}-${pkgver}.tar.bz2)
+sha256sums=('9c0060d66d14a060057a1fc005be73675a1b8a00d4968ce8e78ff2d6b9f84e81')
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ PYTHON=/usr/bin/python2 ./configure --prefix=/usr --disable-static
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make DESTDIR="${pkgdir}" install
+
+ sed -i "s|#!/usr/bin/env python|#!/usr/bin/env python2|" \
+ "${pkgdir}"/usr/lib/gobject-introspection/giscanner/*.py
+}