blob: 631748440e99a4ac9c0ec3b3f355c2a436ba0d79 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
# $Id: PKGBUILD 138602 2011-09-27 11:53:42Z ibiru $
# Maintainer: Jan de Groot <jan@archlinux.org>
pkgname=gnome-menus
pkgver=3.2.0
pkgrel=1
pkgdesc="GNOME menu specifications"
arch=('i686' 'x86_64')
depends=('glib2' 'python2')
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=('de5924aa24f20a9058c14c3a48ddf6785e47afa4dda636d77cbcf4afe63a797b'
'df2779777906b038fa911dc745534564ede9524a64ab368e2f6f8e38d54e7acc')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
patch -Np0 -i "$srcdir/menus.patch"
PYTHON=/usr/bin/python2 ./configure \
--prefix=/usr --sysconfdir=/etc \
--localstatedir=/var --disable-static
make
}
package(){
cd "${srcdir}/${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install
sed -i "1s|#!/usr/bin/env python$|&2|" \
"$pkgdir/usr/lib/python2.7/site-packages/GMenuSimpleEditor/config.py"
}
|