summaryrefslogtreecommitdiffstats
path: root/abs/core/archlinux-xdg-menu/PKGBUILD
blob: b028ed13a29c7da74d5bd2c434ba8dee815cac2d (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
# $Id$
# Maintainer: Sergej Pupykin <sergej@aur.archlinux.org>
# Contributor: Sergej Pupykin <sergej@aur.archlinux.org>

pkgname=archlinux-xdg-menu
pkgver=0.7.6.3
pkgrel=1
pkgdesc="automatic generate WM menu from xdg files"
arch=('any')
url="https://wiki.archlinux.org/index.php/XdgMenu"
license=("GPL")
depends=('perl' 'perl-xml-parser')
#optdepends=('sux: for xdg_menu_su')
backup=("etc/update-menus.conf"
	"etc/xdg/menus/arch-applications.menu")
source=("https://arch.p5n.pp.ru/~sergej/dl/2018/arch-xdg-menu-$pkgver.tar.gz")
sha256sums=('b99668bee882da7bf0ac247e1d9274b75a062bfe0af12efb994d97e40e361914')

package() {
  cd "$srcdir"
  install -D -m 0755 xdg_menu "$pkgdir"/usr/bin/xdg_menu
  install -D -m 0755 xdg_menu_su "$pkgdir"/usr/bin/xdg_menu_su
  install -D -m 0755 update-menus "$pkgdir"/usr/bin/update-menus
  install -D -m 0644 update-menus.conf "$pkgdir"/etc/update-menus.conf
  mkdir -p "$pkgdir"/usr/share/desktop-directories/
  cp arch-desktop-directories/* "$pkgdir"/usr/share/desktop-directories/
  mkdir -p "$pkgdir"/etc/xdg/menus/
  cp arch-xdg-menu/* "$pkgdir"/etc/xdg/menus/
  mkdir -p "$pkgdir"//var/cache/xdg-menu
}