summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@lavabit.com>2013-01-29 06:03:20 -0200
committerAndré Fabian Silva Delgado <emulatorman@lavabit.com>2013-01-29 06:03:20 -0200
commit6094961ced00cb8bce4fe7e0b287c5056a1858cd (patch)
treea2b3c299ff41ee9aa46d6e51512efb6445990b79
parentb8ec5e89a253f67fe284d288eb13c5de97488fe1 (diff)
downloadabslibre-6094961ced00cb8bce4fe7e0b287c5056a1858cd.tar.gz
abslibre-6094961ced00cb8bce4fe7e0b287c5056a1858cd.tar.bz2
abslibre-6094961ced00cb8bce4fe7e0b287c5056a1858cd.zip
parabola-xdg-menu: adding new package to [libre] repo
-rw-r--r--libre/parabola-xdg-menu/PKGBUILD52
1 files changed, 52 insertions, 0 deletions
diff --git a/libre/parabola-xdg-menu/PKGBUILD b/libre/parabola-xdg-menu/PKGBUILD
new file mode 100644
index 000000000..68615937c
--- /dev/null
+++ b/libre/parabola-xdg-menu/PKGBUILD
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Sergej Pupykin <sergej@aur.archlinux.org>
+# Contributor: Sergej Pupykin <sergej@aur.archlinux.org>
+# Maintainer (Parabola): André Silva <emulatorman@lavabit.com>
+
+pkgname=parabola-xdg-menu
+pkgver=0.7.5.5
+pkgrel=1
+pkgdesc="automatic generate WM menu from xdg files (Parabola rebranded)"
+arch=('any')
+url="https://wiki.parabolagnulinux.org/Xdg-menu"
+license=("GPL")
+depends=('perl' 'perlxml')
+optdepends=('sux: for xdg_menu_su')
+backup=("etc/update-menus.conf"
+ "etc/xdg/menus/parabola-applications.menu")
+source=("http://archlinux-stuff.googlecode.com/files/arch-xdg-menu-$pkgver.tar.gz")
+replaces=('archlinux-xdg-menu')
+conflicts=('archlinux-xdg-menu')
+provides=("archlinux-xdg-menu=$pkgver")
+md5sums=('dd139571e537bbe0190eca53eabb8fd2')
+
+build() {
+ 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/sbin/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
+}