updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / menumaker-compiz / PKGBUILD
blob9098f09bc37c22a0cb1a0b6e81641c714100ed54
1 # Contributor: ShadowKyogre <shadowkyogre@aim.com>
2 # The package based on "http://repos.archlinux.org/wsvn/community/menumaker/repos/community-i686/PKGBUILD".
4 pkgname=menumaker-compiz
5 pkgver=0.99.7
6 pkgrel=8
7 pkgdesc="Heuristics-driven menu generator for Deskmenu, FluxBox, IceWM, OpenBox, WindowMaker and XFCE. Now with Compiz, MyGTKMenu, urxvt, and roxterm support."
8 arch=('i686' 'x86_64')
9 url="http://menumaker.sourceforge.net/"
10 license=('BSD')
11 depends=('python2')
12 provides=('menumaker')
13 conflicts=('menumaker')
14 source=(http://downloads.sourceforge.net/${provides}/${provides}-${pkgver}.tar.gz menumaker.patch Compiz.py MyGTKMenu.py)
15 md5sums=('a54cb7ec32db1bc8e04218e0be727b1e'
16          '4988bef543ac659f32364562a2e3ea9a'
17          'f9d52fcfe857dc875437e4669b4929df'
18          '88d96bf417641e463fc4b2ccb9553dae')
20 build() {
21   cd ${srcdir}/${provides}-${pkgver}
22   patch -Np1 -i ../menumaker.patch || return 1
23   cp ${srcdir}/Compiz.py ${srcdir}/${provides}-${pkgver}/MenuMaker
24   cp ${srcdir}/MyGTKMenu.py ${srcdir}/${provides}-${pkgver}/MenuMaker
25   sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python2\nimport sys; sys.path = ["/usr/lib/menumaker"] + sys.path|' ./mmaker
26   msg "Adjusting for python reconfig"
27   ./configure --prefix=/usr --infodir=/usr/share/info --with-python=/usr/bin/python2
28   make -j1 || return 1
29   make DESTDIR=${pkgdir} install
30   install -Dm644 COPYING ${pkgdir}/usr/share/licenses/${provides}/license
31   rm ${pkgdir}/usr/share/info/dir