# $Id: PKGBUILD 170685 2012-11-09 13:29:21Z jgc $ # Maintainer: Jan de Groot pkgname=gobject-introspection pkgver=1.34.1.1 pkgrel=2 pkgdesc="Introspection system for GObject-based libraries" url="https://live.gnome.org/GObjectIntrospection" arch=('x86_64' 'i686') license=('LGPL' 'GPL') depends=('glib2' 'python2' 'python2-mako') makedepends=('cairo') options=('!libtool') source=(http://ftp.gnome.org/pub/gnome/sources/$pkgname/${pkgver::4}/$pkgname-$pkgver.tar.xz) sha256sums=('85b9ac268d34311138f3c6bf646c07975eebfae6ae67d9239e1066a42c5d525b') build() { cd "$pkgname-$pkgver" PYTHON=/usr/bin/python2 ./configure --prefix=/usr --disable-static --enable-doctool make } package() { cd "$pkgname-$pkgver" make DESTDIR="$pkgdir" install sed -i '1s|#!/usr/bin/env python$|&2|' \ "$pkgdir"/usr/lib/gobject-introspection/giscanner/*.py }