summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 756f71ee430c462140dc99bb070547e6464dfa0a (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
# Maintainer: xeyqe <xeyqe@seznam.cz>

pkgname='blackarch-menus-extended'
pkgver='0.2'
pkgrel=2
pkgdesc="BlackArch specific XDG-compliant menu with more desktop files."
arch=('any')
url="https://github.com/BlackArch/blackarch/tree/master/packages/blackarch-menus"
license=('GPL')
depends=('xdg-utils' 'fakeroot' 'gksu')
provides=('blackarch-menus')
conflicts=('blackarch-menus')
replaces=('blackarch-menus')
source=('https://drive.google.com/uc?export=download&id=0B_PopwyKmOH9WUUxRG1uQ0NVZVE')
md5sums=('84cdec2016c5b0f1958623295d9fa736')

prepare() {
	cd desktop_files
	wget "https://raw.githubusercontent.com/BlackArch/blackarch-iso/master/tools/menu-maker/help-flags.txt"
	
	bash blackarch-directory.sh
	bash X-BlackArch.sh
	#bash blackarch_desktop_files.sh
}

package() {
	install -m755 -d "${pkgdir}/etc/xdg/menus/applications-merged"
	install -m755 -d "${pkgdir}/usr/local/bin"
	install -m755 -d "${pkgdir}/usr/share/applications"
	install -m755 -d "${pkgdir}/usr/share/desktop-directories"

	install -m644 desktop_files/X-BlackArch.menu "${pkgdir}/etc/xdg/menus/applications-merged/"
	install -m755 desktop_files/appHelper.sh "${pkgdir}/usr/local/bin"
	install -m644 desktop_files/*.desktop "${pkgdir}/usr/share/applications/"
	install -m644 desktop_files/*.directory "${pkgdir}/usr/share/desktop-directories/"
}