diff options
author | Ted Alff | 2015-07-28 19:37:16 -0400 |
---|---|---|
committer | Ted Alff | 2015-07-28 19:37:16 -0400 |
commit | 3511c1b93f43f388fa31ec3cd4283d2b606500f3 (patch) | |
tree | ee2a0c0a8252f0305a029a190c8278ab73e9f2ec | |
download | aur-3511c1b93f43f388fa31ec3cd4283d2b606500f3.tar.gz |
Initial AUR4 import
-rw-r--r-- | .SRCINFO | 25 | ||||
-rw-r--r-- | PKGBUILD | 68 | ||||
-rw-r--r-- | arch_and_python_stuff.patch | 146 |
3 files changed, 239 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..6a5c98df98b5 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,25 @@ +pkgbase = cardapio-bzr + pkgdesc = An alternative Gnome menu, launcher, and much more! + pkgver = 886 + pkgrel = 1 + url = https://launchpad.net/cardapio + arch = i686 + arch = x86_64 + license = GPL3 + makedepends = bzr + depends = python2-xdg + depends = xdg-user-dirs + depends = python2-dbus + depends = python2-gnomedesktop + depends = python2-keybinder2 + depends = python2-simplejson + depends = gnome-control-center + depends = tk + optdepends = tracker: search capability + provides = cardapio + conflicts = cardapio + source = arch_and_python_stuff.patch + sha256sums = 3fdaae9f4248c10d665492fb85f018d22d1a7120c65a1491efe58a2437bb98d0 + +pkgname = cardapio-bzr + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..8192d36a6d9d --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,68 @@ +# Maintainer: twa022 <twa022 at gmail dot com> +# Contributor: max.bra <max dot bra at alice dot it> +# Contributor: Shanto <shanto at hotmail> + +_pkgname=cardapio +pkgname=${_pkgname}-bzr +pkgver=886 +pkgrel=1 +pkgdesc="An alternative Gnome menu, launcher, and much more!" +arch=('i686' 'x86_64') +url="https://launchpad.net/cardapio" +license=('GPL3') +conflicts=('cardapio') +provides=('cardapio') +depends=('python2-xdg' 'xdg-user-dirs' 'python2-dbus' 'python2-gnomedesktop' 'python2-keybinder2' 'python2-simplejson' 'gnome-control-center' 'tk') +makedepends=('bzr') +optdepends=('tracker: search capability') +source=(arch_and_python_stuff.patch) + +_bzrmod=cardapio +_bzrtrunk=https://launchpad.net/cardapio/trunk + +build() { + cd "${srcdir}" + msg "Connecting to Bazaar server...." + + if [ -d $_bzrmod ] ; then + cd ${_bzrmod} && bzr --no-plugins pull ${_bzrtrunk} -r ${pkgver} + msg "The local files are updated." + else + bzr --no-plugins branch ${_bzrtrunk} ${_bzrmod} -q -r ${pkgver} + fi + + msg "Bazaar checkout done or server timeout" + + msg "Removing old build directory..." + rm -rf $srcdir/$_bzrmod-build + msg "Creating build directory..." + cp -r $srcdir/$_bzrmod $srcdir/$_bzrmod-build + + msg "Arch and Python2 adjustments..." + cd "${srcdir}/$_bzrmod-build" + patch -uNp2 -r- -i ../arch_and_python_stuff.patch || return 1 + make +} + +package() { + msg "Building cardapio...." + cd "${srcdir}/${_pkgname}-build/" + make DESTDIR="'${pkgdir}'" install || return 1 + ln -s "/usr/lib/cardapio/cardapio" "$pkgdir/usr/bin/" + ln -s "/usr/lib/cardapio/cardapio-gnome-panel-applet" "$pkgdir/usr/bin/" + ln -s "/usr/lib/cardapio/cardapio-gnome3-panel-applet" "$pkgdir/usr/bin/" + ln -s "/usr/lib/cardapio/cardapio-mate-panel-applet" "$pkgdir/usr/bin/" + + #msg "Building cardapio-docky...." + #cd "${srcdir}/${_pkgname}-build/src/docky" + #make DESTDIR="'${pkgdir}'" install || return 1 + + #msg "Building cardapio-awn...." + #cd "${srcdir}/${_pkgname}-build/src/awn" + #make DESTDIR="'${pkgdir}'" install || return 1 + + msg "Cleaning package...." + rm "${pkgdir}"/usr/share/locale/cardapio.pot || return 1 +} + +sha256sums=('3fdaae9f4248c10d665492fb85f018d22d1a7120c65a1491efe58a2437bb98d0') diff --git a/arch_and_python_stuff.patch b/arch_and_python_stuff.patch new file mode 100644 index 000000000000..9787e7c8a8f3 --- /dev/null +++ b/arch_and_python_stuff.patch @@ -0,0 +1,146 @@ +diff -Naur ./cardapio.orig/Makefile ./cardapio/Makefile +--- ./cardapio.orig/Makefile 2012-09-08 21:27:31.836738592 -0400 ++++ ./cardapio/Makefile 2012-09-08 21:31:24.632143534 -0400 +@@ -1,4 +1,4 @@ +-PYTHON = `which python` ++PYTHON = `which python2` + + ifeq ($(DESTDIR),) + DESTDIR = +@@ -31,8 +31,8 @@ + install: install-alone install-panel install-docky install-awn install-shell install-mate install-cinnamon + + install-alone: +- python -m compileall src/ +- python -m compileall src/plugins/ ++ $(PYTHON) -m compileall src/ ++ $(PYTHON) -m compileall src/plugins/ + + # remove old files which have been renamed or moved to another package + rm -f $(PREFIX)/lib/cardapio/cardapio.py +@@ -89,7 +89,7 @@ + cp -f res/cardapio*.svg $(PREFIX)/share/pixmaps/ + + mkdir -p $(PREFIX)/bin +- ln -sf ../lib/cardapio/cardapio $(PREFIX)/bin/cardapio ++ #ln -sf ../lib/cardapio/cardapio $(PREFIX)/bin/cardapio + + mkdir -p $(PREFIX)/share/applications + cp -f res/cardapio.desktop $(PREFIX)/share/applications/ +@@ -98,7 +98,7 @@ + cp -f res/cardapio.service $(PREFIX)/share/dbus-1/services/cardapio.service + + install-panel: install-alone +- python -m compileall src/gnomepanel/ ++ $(PYTHON) -m compileall src/gnomepanel/ + cp -f src/gnomepanel/cardapio-gnome-panel $(PREFIX)/lib/cardapio/ + cp -f src/gnomepanel/cardapio-gnome3-panel $(PREFIX)/lib/cardapio/ + +@@ -109,11 +109,11 @@ + cp -f src/gnomepanel/__init__* $(PREFIX)/lib/cardapio/gnomepanel/ + + mkdir -p $(PREFIX)/bin +- ln -sf ../lib/cardapio/cardapio-gnome-panel $(PREFIX)/bin/cardapio-gnome-panel +- ln -sf ../lib/cardapio/cardapio-gnome3-panel $(PREFIX)/bin/cardapio-gnome3-panel ++ #ln -sf ../lib/cardapio/cardapio-gnome-panel $(PREFIX)/bin/cardapio-gnome-panel ++ #ln -sf ../lib/cardapio/cardapio-gnome3-panel $(PREFIX)/bin/cardapio-gnome3-panel + + mkdir -p $(PREFIX)/lib/gnome-applets +- ln -sf ../cardapio/cardapio-gnome3-panel $(PREFIX)/lib/gnome-applets/cardapio-gnome-panel ++ #ln -sf ../cardapio/cardapio-gnome3-panel $(PREFIX)/lib/gnome-applets/cardapio-gnome-panel + + mkdir -p $(PREFIX)/share/dbus-1/services + cp -f src/gnomepanel/cardapio.service $(PREFIX)/share/dbus-1/services/org.gnome.panel.applet.CardapioGnomeApplet.service +@@ -130,7 +130,7 @@ + rm locale/*.po + + install-mate: install-alone +- python -m compileall src/matepanel/ ++ $(PYTHON) -m compileall src/matepanel/ + cp -f src/matepanel/cardapio-mate-panel-applet $(PREFIX)/lib/cardapio/ + + mkdir -p $(PREFIX)/lib/cardapio/matepanel +@@ -139,7 +139,7 @@ + cp -f src/matepanel/__init__* $(PREFIX)/lib/cardapio/matepanel/ + + mkdir -p $(PREFIX)/bin +- ln -sf ../lib/cardapio/cardapio-mate-panel-applet $(PREFIX)/bin/cardapio-mate-panel-applet ++ #ln -sf ../lib/cardapio/cardapio-mate-panel-applet $(PREFIX)/bin/cardapio-mate-panel-applet + + mkdir -p $(PREFIX)/lib/matecomponent/servers + #cp -f src/matepanel/cardapio.server $(PREFIX)/lib/matecomponent/servers/ +@@ -150,7 +150,7 @@ + rm locale/*.po + + install-docky: install-alone +- python -m compileall src/docky/ ++ $(PYTHON) -m compileall src/docky/ + cp -f res/cardapioDocky.desktop $(PREFIX)/lib/cardapio/ + + mkdir -p $(PREFIX)/lib/cardapio/docky +diff -Naur ./cardapio.orig/src/Cardapio.py ./cardapio/src/Cardapio.py +--- ./cardapio.orig/src/Cardapio.py 2012-09-08 21:27:31.846738098 -0400 ++++ ./cardapio/src/Cardapio.py 2012-09-08 21:28:06.239884241 -0400 +@@ -117,7 +117,7 @@ + + class Cardapio(dbus.service.Object): + +- distro_name = platform.linux_distribution()[0] ++ distro_name = 'ArchLinux' + + MIN_VISIBILITY_TOGGLE_INTERVAL = 0.200 # seconds (this is a bit of a hack to fix some focus problems) + PLUGIN_REBUILD_DELAY = 30000 # milliseconds +@@ -2930,7 +2930,7 @@ + self._launch_raw(self.de.about_de) + + elif verb == 'AboutDistro': +- self._launch_raw(self.de.about_distro) ++ self.launch_raw('xdg-open http://wiki.archlinux.org') + + else: self._view.open_about_dialog() + +diff -Naur ./cardapio.orig/src/cardapio ./cardapio/src/cardapio +--- ./cardapio.orig/src/cardapio 2012-09-08 21:27:31.843404944 -0400 ++++ ./cardapio/src/cardapio 2012-09-08 21:28:06.239884241 -0400 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/env python2 + # + # Cardapio is an alternative menu applet, launcher, and much more! + # +diff -Naur ./cardapio.orig/src/docky/cardapio_helper.py ./cardapio/src/docky/cardapio_helper.py +--- ./cardapio.orig/src/docky/cardapio_helper.py 2012-09-08 21:27:31.846738098 -0400 ++++ ./cardapio/src/docky/cardapio_helper.py 2012-09-08 21:28:06.239884241 -0400 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/env python2 + + # + # Copyright (C) 2010 Cardapio Team (tvst@hotmail.com) +diff -Naur ./cardapio.orig/src/gnomepanel/cardapio-gnome-panel ./cardapio/src/gnomepanel/cardapio-gnome-panel +--- ./cardapio.orig/src/gnomepanel/cardapio-gnome-panel 2012-09-08 21:27:31.846738098 -0400 ++++ ./cardapio/src/gnomepanel/cardapio-gnome-panel 2012-09-08 21:28:06.239884241 -0400 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/env python2 + # + # Cardapio is an alternative menu applet, launcher, and much more! + # Copyright (C) 2010 Cardapio Team (tvst@hotmail.com) +diff -Naur ./cardapio.orig/src/gnomepanel/cardapio-gnome3-panel ./cardapio/src/gnomepanel/cardapio-gnome3-panel +--- ./cardapio.orig/src/gnomepanel/cardapio-gnome3-panel 2012-09-08 21:27:31.846738098 -0400 ++++ ./cardapio/src/gnomepanel/cardapio-gnome3-panel 2012-09-08 21:28:06.239884241 -0400 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/env python2 + # + # Cardapio is an alternative menu applet, launcher, and much more! + # Copyright (C) 2010 Cardapio Team (tvst@hotmail.com) +diff -Naur ./cardapio.orig/src/matepanel/cardapio-mate-panel-applet ./cardapio/src/matepanel/cardapio-mate-panel-applet +--- ./cardapio.orig/src/matepanel/cardapio-mate-panel-applet 2012-09-08 21:27:31.843404944 -0400 ++++ ./cardapio/src/matepanel/cardapio-mate-panel-applet 2012-09-08 21:28:06.239884241 -0400 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/env python2 + # + # Cardapio is an alternative menu applet, launcher, and much more! + # |