updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / avant-window-navigator / PKGBUILD
blob1c3c0c74e6368a769445c89f829ca4b063528fce
1 # Maintainer: György Balló <ballogy@freestart.hu>
2 # Contributor: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
3 # Contributor: Timm Preetz <timm@preetz.us>
4 # Contributor: Daniel J Griffiths <ghost1227@archlinux.us>
6 pkgname=avant-window-navigator
7 pkgver=0.4.0
8 pkgrel=11
9 pkgdesc="Fully customisable dock-like window navigator for GNOME"
10 arch=('i686' 'x86_64')
11 url="https://launchpad.net/awn"
12 license=('GPL')
13 depends=('libdesktop-agnostic' 'libxcomposite' 'libwnck' 'libgtop' 'gconf' 'bzr' 'dbus-python' 'pyxdg' 'hicolor-icon-theme' 'xdg-utils')
14 makedepends=('gtk-doc' 'vala' 'intltool')
15 options=(!libtool)
16 install=$pkgname.install
17 source=(http://launchpad.net/awn/0.4/$pkgver/+download/$pkgname-$pkgver.tar.gz
18         fix-dso-linking.patch
19         fix-unitialized-pointer.patch)
20 md5sums=('03654b45dd95cbb83fa7e112bd00523c'
21          '25aa951e36b17ba2471c18afb7ba4acb'
22          '2e53c76a28a49f793f92b673e4f56539')
24 build() {
25   cd $srcdir/$pkgname-$pkgver
26   # LP#561492
27   patch -Np1 -i "$srcdir/fix-dso-linking.patch"
28   # FS#19084
29   patch -Np0 -i "$srcdir/fix-unitialized-pointer.patch"
31   # Python2 fix
32   sed -i 's@^#!.*python$@#!/usr/bin/python2@' awn-settings/{awnSettings.py.in,awnSettingsHelper.py}
33   sed -i 's/with ("python"/with ("python2"/' applet-activation/main.c
35   ./configure --prefix=/usr --sysconfdir=/usr/share \
36               --disable-static --enable-gtk-doc \
37               PYTHON=/usr/bin/python2
38   make
41 package() {
42   cd $srcdir/$pkgname-$pkgver
44   make GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 DESTDIR="$pkgdir" install
46   gconf-merge-schema "$srcdir/awn.schemas" "$pkgdir"/usr/share/gconf/schemas/*.schemas
47   rm "$pkgdir"/usr/share/gconf/schemas/*.schemas
48   install "$srcdir/awn.schemas" "$pkgdir"/usr/share/gconf/schemas/awn.schemas