blob: 7bd18e34a129b6f0918aa6bbcf8cf252f9a734f7 (
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# $Id: PKGBUILD 126121 2015-01-18 19:32:58Z eric $
# Maintainer (Arch): Sergej Pupykin <sergej@aur.archlinux.org>
# Contributor (Arch): Sergej Pupykin <sergej@aur.archlinux.org>
# Maintainer (Hyperbola): André Silva <emulatorman@hyperbola.info>
# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
pkgname=parabola-xdg-menu
pkgver=0.7.6.3
pkgrel=1
pkgdesc="automatic generate WM menu from xdg files (Parabola rebranded)"
arch=('any')
url="https://wiki.parabola.nu/XdgMenu"
license=("GPL")
depends=('perl' 'perl-xml-parser')
#optdepends=('sux: for xdg_menu_su')
backup=("etc/update-menus.conf"
"etc/xdg/menus/parabola-applications.menu")
source=("https://arch.p5n.pp.ru/~sergej/dl/2018/arch-xdg-menu-$pkgver.tar.gz")
replaces=('archlinux-xdg-menu')
conflicts=('archlinux-xdg-menu')
provides=("archlinux-xdg-menu=$pkgver")
sha256sums=('b99668bee882da7bf0ac247e1d9274b75a062bfe0af12efb994d97e40e361914')
package() {
cd "$srcdir"
# Rebranding Archlinux to Parabola
rename -v arch parabola arch-desktop-directories arch-xdg-menu
rename -v Arch Parabola parabola-desktop-directories/*
rename -v arch parabola parabola-xdg-menu/*
sed -i -e 's/arch/parabola/'\
update-menus || read
sed -i -e 's/archlinux/parabola/'\
xdg_menu || read
sed -i -e 's/Archlinux/Parabola/'\
parabola-xdg-menu/parabola-applications.menu || read
sed -i -e 's/Arch/Parabola/'\
parabola-xdg-menu/parabola-applications.menu || read
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 parabola-desktop-directories/* "$pkgdir"/usr/share/desktop-directories/
mkdir -p "$pkgdir"/etc/xdg/menus/
cp parabola-xdg-menu/* "$pkgdir"/etc/xdg/menus/
mkdir -p "$pkgdir"//var/cache/xdg-menu
}
|