updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / awn-extras-applets / PKGBUILD
blobb6276ac47f06b996c1e8ff352f5a59b319028c03
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=10
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')
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 options=('!libtool')
39 install=$pkgname.install
40 source=(http://launchpad.net/$_pkgname/0.4/$pkgver/+download/$_pkgname-$pkgver.tar.gz
41         awn-extras-libnotify0.7.patch
42         remove-settings-menu.patch
43         add-battery-upower-support.patch
44         fix-shinyswitcher-scrolling.patch)
45 md5sums=('b559d68cd6ad295c961c20fcc5d9f9c0'
46          '2df8dfd8f0f1d458c09b56983c7d049f'
47          '52f8ce6a4eca862b0740e29a84db8ae5'
48          '26b56106b63b14ba3c99f1a2e96da05d'
49          '755c57dfbb65a314f247277918ec95ac')
51 build() {
52   cd "$srcdir/$_pkgname-$pkgver"
53   patch -Np1 -i "$srcdir/awn-extras-libnotify0.7.patch"
54   patch -Np1 -i "$srcdir/remove-settings-menu.patch"
55   patch -Np0 -i "$srcdir/add-battery-upower-support.patch"
56   patch -Np0 -i "$srcdir/fix-shinyswitcher-scrolling.patch"
58   # Python2 fix
59   find . -type f -name *.py | xargs sed -i 's@^#.*python$@#!/usr/bin/python2@'
60   sed -i 's/async(\"python \"/async(\"python2 \"/' applets/maintained/shiny-switcher/shinyswitcherapplet.c
62   ./configure --prefix=/usr --sysconfdir=/etc \
63               --disable-pymod-checks \
64               --with-webkit \
65               PYTHON=/usr/bin/python2
66   make
69 package() {
70   cd "$srcdir/$_pkgname-$pkgver"
72   make GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 DESTDIR="$pkgdir" install
74   mkdir -p "$pkgdir/usr/share/gconf/schemas"
75   gconf-merge-schema "$pkgdir/usr/share/gconf/schemas/awn-extras.schemas" "$pkgdir"/etc/gconf/schemas/*.schemas
76   rm -r "$pkgdir"/etc