PKGBUILD 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. # $Id: PKGBUILD 126121 2015-01-18 19:32:58Z eric $
  2. # Maintainer (Arch): Sergej Pupykin <sergej@aur.archlinux.org>
  3. # Contributor (Arch): Sergej Pupykin <sergej@aur.archlinux.org>
  4. # Maintainer (Hyperbola): André Silva <emulatorman@hyperbola.info>
  5. # Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
  6. pkgname=parabola-xdg-menu
  7. pkgver=0.7.6.3
  8. pkgrel=1
  9. pkgdesc="automatic generate WM menu from xdg files (Parabola rebranded)"
  10. arch=('any')
  11. url="https://wiki.parabola.nu/XdgMenu"
  12. license=("GPL")
  13. depends=('perl' 'perl-xml-parser')
  14. #optdepends=('sux: for xdg_menu_su')
  15. backup=("etc/update-menus.conf"
  16. "etc/xdg/menus/parabola-applications.menu")
  17. source=("https://arch.p5n.pp.ru/~sergej/dl/2018/arch-xdg-menu-$pkgver.tar.gz")
  18. replaces=('archlinux-xdg-menu')
  19. conflicts=('archlinux-xdg-menu')
  20. provides=("archlinux-xdg-menu=$pkgver")
  21. sha256sums=('b99668bee882da7bf0ac247e1d9274b75a062bfe0af12efb994d97e40e361914')
  22. package() {
  23. cd "$srcdir"
  24. # Rebranding Archlinux to Parabola
  25. rename -v arch parabola arch-desktop-directories arch-xdg-menu
  26. rename -v Arch Parabola parabola-desktop-directories/*
  27. rename -v arch parabola parabola-xdg-menu/*
  28. sed -i -e 's/arch/parabola/'\
  29. update-menus || read
  30. sed -i -e 's/archlinux/parabola/'\
  31. xdg_menu || read
  32. sed -i -e 's/Archlinux/Parabola/'\
  33. parabola-xdg-menu/parabola-applications.menu || read
  34. sed -i -e 's/Arch/Parabola/'\
  35. parabola-xdg-menu/parabola-applications.menu || read
  36. install -D -m 0755 xdg_menu "$pkgdir"/usr/bin/xdg_menu
  37. install -D -m 0755 xdg_menu_su "$pkgdir"/usr/bin/xdg_menu_su
  38. install -D -m 0755 update-menus "$pkgdir"/usr/bin/update-menus
  39. install -D -m 0644 update-menus.conf "$pkgdir"/etc/update-menus.conf
  40. mkdir -p "$pkgdir"/usr/share/desktop-directories/
  41. cp parabola-desktop-directories/* "$pkgdir"/usr/share/desktop-directories/
  42. mkdir -p "$pkgdir"/etc/xdg/menus/
  43. cp parabola-xdg-menu/* "$pkgdir"/etc/xdg/menus/
  44. mkdir -p "$pkgdir"//var/cache/xdg-menu
  45. }