summaryrefslogtreecommitdiff
path: root/community/awn-extras-applets/PKGBUILD
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
commit415856bdd4f48ab4f2732996f0bae58595092bbe (patch)
treeede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/awn-extras-applets/PKGBUILD
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/awn-extras-applets/PKGBUILD')
-rw-r--r--community/awn-extras-applets/PKGBUILD50
1 files changed, 50 insertions, 0 deletions
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 <ionut@archlinux.ro>
+# Contributor: Jonathan Liu <net147@hotmail.com>
+# Maintainer: Daniel J Griffiths <ghost1227@archlinux.us>
+
+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: