summaryrefslogtreecommitdiff
path: root/community/awn-extras-applets/PKGBUILD
blob: 4b29d8403c7e7bb3889ec4bfdbadde9c4a741a0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
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' 'mips64el')
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: