# $Id: PKGBUILD 82 2009-07-17 19:56:55Z aaron $ # Maintainer: Sergej Pupykin # Contributor: Sergej Pupykin pkgname=archlinux-xdg-menu pkgver=0.7.4 pkgrel=1 pkgdesc="automatic generate WM menu from xdg files" arch=('i686' 'x86_64') url="http://wiki.archlinux.org/index.php/XdgMenu" license=("GPL") depends=(perlxml) backup=(etc/update-menus.conf \ etc/xdg/menus/arch-applications.menu) source=(http://archlinux-stuff.googlecode.com/files/arch-xdg-menu-$pkgver.tar.gz) md5sums=('b2d21c52e935aad8a824efa6b847ce7f') build() { cd $startdir/src install -D -m 0755 xdg_menu $startdir/pkg/usr/bin/xdg_menu && \ install -D -m 0755 xdg_menu_su $startdir/pkg/usr/bin/xdg_menu_su && \ install -D -m 0755 update-menus $startdir/pkg/usr/sbin/update-menus && \ install -D -m 0644 update-menus.conf $startdir/pkg/etc/update-menus.conf && \ mkdir -p $startdir/pkg/usr/share/desktop-directories/ && \ cp arch-desktop-directories/* $startdir/pkg/usr/share/desktop-directories/ && \ mkdir -p $startdir/pkg/etc/xdg/menus/ && \ cp arch-xdg-menu/* $startdir/pkg/etc/xdg/menus/ && \ mkdir -p $startdir/pkg//var/cache/xdg-menu }