summaryrefslogtreecommitdiff
path: root/extra/gnome-menus/PKGBUILD
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-04-22 03:32:22 -0700
committerroot <root@rshg054.dnsready.net>2013-04-22 03:32:22 -0700
commita5f6ca5d4e1aa12dfec53c3061df6e0198126fb4 (patch)
tree847ba1746c6fe36ac676c6d9231ad77be14d0bfb /extra/gnome-menus/PKGBUILD
parent3faf011988bf1728989962e062a474aaa62b55f5 (diff)
Mon Apr 22 03:32:18 PDT 2013
Diffstat (limited to 'extra/gnome-menus/PKGBUILD')
-rw-r--r--extra/gnome-menus/PKGBUILD36
1 files changed, 36 insertions, 0 deletions
diff --git a/extra/gnome-menus/PKGBUILD b/extra/gnome-menus/PKGBUILD
new file mode 100644
index 000000000..09763771a
--- /dev/null
+++ b/extra/gnome-menus/PKGBUILD
@@ -0,0 +1,36 @@
+# $Id: PKGBUILD 175187 2013-01-16 10:52:05Z jgc $
+# Maintainer: Jan de Groot <jan@archlinux.org>
+
+pkgname=gnome-menus
+pkgver=3.6.2
+pkgrel=1
+pkgdesc="GNOME menu specifications"
+arch=('i686' 'x86_64')
+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=('f6cefb25ce3ca2a0e4cb43894089cc6079bf948230e99bc0e244b380fa84bf4f'
+ '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"
+}