From 415856bdd4f48ab4f2732996f0bae58595092bbe Mon Sep 17 00:00:00 2001 From: Parabola Date: Tue, 5 Apr 2011 14:26:38 +0000 Subject: Tue Apr 5 14:26:38 UTC 2011 --- community/awn-extras-applets/PKGBUILD | 50 +++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 community/awn-extras-applets/PKGBUILD (limited to 'community/awn-extras-applets/PKGBUILD') diff --git a/community/awn-extras-applets/PKGBUILD b/community/awn-extras-applets/PKGBUILD new file mode 100644 index 000000000..2379fd74e --- /dev/null +++ b/community/awn-extras-applets/PKGBUILD @@ -0,0 +1,50 @@ +# $Id: PKGBUILD 41460 2011-03-06 17:46:31Z jelle $ +# Contributor: Biru Ionut +# Contributor: Jonathan Liu +# Maintainer: Daniel J Griffiths + +pkgname=awn-extras-applets +pkgver=0.4.0 +pkgrel=8 +pkgdesc="A collection of applets for avant-window-navigator" +arch=('i686' 'x86_64') +url="https://launchpad.net/awn-extras" +license=('GPL2') +depends=('avant-window-navigator' 'gnome-menus' 'libgtop' 'libnotify' + 'libsexy' 'vte' 'gstreamer0.10-python') +makedepends=('intltool' 'libdesktop-agnostic' 'vala') +optdepends=('python-notify: needed for some applets' + 'python-vobject: needed for some applets') +provides=('avant-window-navigator-extras') +install=awn-extras-applets.install +options=('!libtool') +source=(http://launchpad.net/awn-extras/0.4/0.4.0/+download/awn-extras-0.4.0.tar.gz \ + awn-extras-libnotify0.7.patch) +md5sums=('b559d68cd6ad295c961c20fcc5d9f9c0' + '7999955956d1d2457b4c3b50ffd3199d') + +build() { + cd ${srcdir}/${pkgname/-applets/}-${pkgver} + patch -Np1 -i $srcdir/awn-extras-libnotify0.7.patch + ./configure --prefix=/usr --sysconfdir=/etc --disable-pymod-checks + make +} + +package() { + cd ${srcdir}/${pkgname/-applets/}-${pkgver} + make GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 DESTDIR=${pkgdir} install + + # yes... theses guys can not even get a "#!" right + sed -i -e "s|#[ ]*[!]*[ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \ + -e "s|#[ ]*![ ]*/usr/bin/python$|#!/usr/bin/python2|" \ + $(find $pkgdir/usr/share/avant-window-navigator/applets/ -name '*.py') \ + $pkgdir/usr/lib/python2.7/site-packages/awn/extras/awnmediaplayers.py + + mkdir -p ${pkgdir}/usr/share/gconf/schemas + gconf-merge-schema ${pkgdir}/usr/share/gconf/schemas/awn-extras.schemas \ + ${pkgdir}/etc/gconf/schemas/*.schemas + rm -f ${pkgdir}/etc/gconf/schemas/*.schemas + rmdir --ignore-fail-on-non-empty -p ${pkgdir}/usr/share/locale + rmdir --ignore-fail-on-non-empty -p ${pkgdir}/etc/gconf/schemas +} +# vim:set ts=2 sw=2 et: -- cgit v1.2.3-54-g00ecf