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
7 pkgdesc="Heuristics-driven menu generator for Deskmenu, FluxBox, IceWM, OpenBox, WindowMaker and XFCE. Now with Compiz, MyGTKMenu, urxvt, and roxterm support."
9 url="http://menumaker.sourceforge.net/"
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')
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
29 make DESTDIR=${pkgdir} install
30 install -Dm644 COPYING ${pkgdir}/usr/share/licenses/${provides}/license
31 rm ${pkgdir}/usr/share/info/dir