# $Id: PKGBUILD 159030 2012-05-15 10:41:25Z heftig $ # Maintainer: Jan de Groot pkgname=gnome-menus pkgver=3.4.2 pkgrel=1 pkgdesc="GNOME menu specifications" arch=('i686' 'x86_64' 'mips64el') depends=('glib2' 'python2-gobject') makedepends=('intltool' 'gobject-introspection') options=('!libtool') license=('GPL' 'LGPL') url="http://www.gnome.org" source=(http://ftp.gnome.org/pub/gnome/sources/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.xz menus.patch) sha256sums=('fa8b98eb5c62da20f1fb4f6e251f819d78c925006b00d2f63005a6418aa81e63' 'df2779777906b038fa911dc745534564ede9524a64ab368e2f6f8e38d54e7acc') build() { cd "$pkgname-$pkgver" patch -Np0 -i "$srcdir/menus.patch" PYTHON=/usr/bin/python2 ./configure \ --prefix=/usr --sysconfdir=/etc \ --localstatedir=/var --disable-static make } package(){ cd "$pkgname-$pkgver" make DESTDIR="$pkgdir" install sed -i "1s|#!/usr/bin/env python$|&2|" \ "$pkgdir/usr/lib/python2.7/site-packages/GMenuSimpleEditor/config.py" }