# $Id$ # Maintainer: Jan de Groot pkgname=gobject-introspection pkgver=1.42.0 pkgrel=1 pkgdesc="Introspection system for GObject-based libraries" url="https://live.gnome.org/GObjectIntrospection" arch=('x86_64' 'i686') license=('LGPL' 'GPL') depends=('glib2') makedepends=('cairo' 'python2' 'python2-mako') optdepends=('python2: gir development tools' 'python2-mako: g-ir-doc-tool') source=(http://ftp.gnome.org/pub/gnome/sources/$pkgname/${pkgver:0:4}/$pkgname-$pkgver.tar.xz) sha256sums=('3ba2edfad4f71d4f0de16960b5d5f2511335fa646b2c49bbb93ce5942b3f95f7') prepare() { cd $pkgname-$pkgver sed -i '1s|#!/usr/bin/env python$|&2|' giscanner/*.py } build() { cd $pkgname-$pkgver PYTHON=/usr/bin/python2 ./configure --prefix=/usr --disable-static --enable-doctool make } package() { cd $pkgname-$pkgver make DESTDIR="$pkgdir" install }