updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / awn-extras-applets / PKGBUILD
blobd943cc019329e624c0e5eb42192484959634b8e9
1 # Maintainer: György Balló <ballogy@freestart.hu>
2 # Contributor: Biru Ionut <ionut@archlinux.ro>
3 # Contributor: Jonathan Liu <net147@hotmail.com>
4 # Contributor: Daniel J Griffiths <ghost1227@archlinux.us>
6 pkgname=awn-extras-applets
7 _pkgname=awn-extras
8 pkgver=0.4.0
9 pkgrel=11
10 pkgdesc="A collection of applets for avant-window-navigator"
11 arch=('i686' 'x86_64')
12 url="https://launchpad.net/awn-extras"
13 license=('GPL2')
14 depends=('avant-window-navigator' 'python-notify' 'vte' 'gnome-menus' 'gnome-menus2' 'libwebkit' 'libindicator')
15 makedepends=('intltool' 'vala')
16 optdepends=('python2-feedparser: comics, feeds, mail applets'
17             'python-rsvg: comics, cairo-clock, hardware-sensors applets'
18             'gstreamer0.10-python: media-player, volume-control applets'
19             'python2-dateutil: cairo-clock (optional), calendar applets'
20             'python2-gconf: slickswitcher applet (optional)'
21             'python-gdata: calendar applet'
22             'python-vobject: calendar applet'
23             'python2-pyinotify: thinkhdaps applet (optional)'
24             'python2-libgnome: stacks applet'
25             'python-gnomedesktop: stacks applet'
26             'python-simplejson: feeds applet'
27             'python-wnck: slickswitcher applet'
28             'fortune-mod: animal-farm applet'
29             'net-tools: bandwidth-monitor applet'
30             'upower: battery applet'
31             'gnome-applets: cpufreq applet'
32             'hddtemp: hardware-sensors applet (optional)'
33             'lm_sensors: hardware-sensors applet'
34             'banshee: media-control applet'
35             'tomboy: tomboy applet'
36             'gnome-screensaver: quit applet (optional)'
37             'gnome-session: quit applet (optional)'
38             'indicator-application-gtk2: indicator applet (optional)'
39             'indicator-messages-gtk2: indicator applet (optional)'
40             'indicator-sound-gtk2: indicator applet (optional)')
41 options=('!libtool')
42 install=$pkgname.install
43 source=(http://launchpad.net/$_pkgname/0.4/$pkgver/+download/$_pkgname-$pkgver.tar.gz
44         awn-extras-libnotify0.7.patch
45         remove-settings-menu.patch
46         add-battery-upower-support.patch
47         fix-shinyswitcher-scrolling.patch
48         add-indicator-applet.patch)
49 md5sums=('b559d68cd6ad295c961c20fcc5d9f9c0'
50          '2df8dfd8f0f1d458c09b56983c7d049f'
51          '52f8ce6a4eca862b0740e29a84db8ae5'
52          '26b56106b63b14ba3c99f1a2e96da05d'
53          '755c57dfbb65a314f247277918ec95ac'
54          'cc984a86746a78694469cb28498463d6')
56 build() {
57   cd "$srcdir/$_pkgname-$pkgver"
58   patch -Np1 -i "$srcdir/awn-extras-libnotify0.7.patch"
59   patch -Np1 -i "$srcdir/remove-settings-menu.patch"
60   patch -Np0 -i "$srcdir/add-battery-upower-support.patch"
61   patch -Np0 -i "$srcdir/fix-shinyswitcher-scrolling.patch"
62   patch -Np1 -i "$srcdir/add-indicator-applet.patch"
64   # Python2 fix
65   find . -type f -name *.py | xargs sed -i 's@^#.*python$@#!/usr/bin/python2@'
66   sed -i 's/async(\"python \"/async(\"python2 \"/' applets/maintained/shiny-switcher/shinyswitcherapplet.c
68   autoreconf -fi
69   ./configure --prefix=/usr --sysconfdir=/etc \
70               --disable-static \
71               --disable-pymod-checks \
72               --with-webkit \
73               --with-indicator=yes \
74               PYTHON=/usr/bin/python2
75   make
78 package() {
79   cd "$srcdir/$_pkgname-$pkgver"
81   make GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 DESTDIR="$pkgdir" install
83   mkdir -p "$pkgdir/usr/share/gconf/schemas"
84   gconf-merge-schema "$pkgdir/usr/share/gconf/schemas/awn-extras.schemas" "$pkgdir"/etc/gconf/schemas/*.schemas
85   rm -r "$pkgdir"/etc
87   # Remove dialect and pandora applets
88   rm -R "$pkgdir"/usr/share/avant-window-navigator/applets/{dialect,pandora}*