summaryrefslogtreecommitdiff
path: root/community/avant-window-navigator/PKGBUILD
blob: 6d6bb256e4a9f0562b88ee89b250b0eee5682824 (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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# $Id: PKGBUILD 79700 2012-11-11 10:30:00Z bgyorgy $
# Maintainer: Balló György <ballogyor+arch at gmail dot com>
# Contributor: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
# Contributor: Timm Preetz <timm@preetz.us>
# Contributor: Daniel J Griffiths <ghost1227@archlinux.us>

pkgname=avant-window-navigator
pkgver=0.4.0
pkgrel=13
pkgdesc="Fully customisable dock-like window navigator for GNOME"
arch=('i686' 'x86_64' 'mips64el')
url="https://launchpad.net/awn"
license=('GPL')
depends=('libdesktop-agnostic' 'libwnck' 'libgtop' 'gconf' 'python2-dbus' 'pygtk' 'python2-xdg' 'hicolor-icon-theme' 'xdg-utils')
makedepends=('gtk-doc' 'vala' 'intltool')
options=('!libtool')
install=$pkgname.install
source=(http://launchpad.net/awn/0.4/$pkgver/+download/$pkgname-$pkgver.tar.gz
        688_687.diff
        821_820.diff
        824_823.diff)
md5sums=('03654b45dd95cbb83fa7e112bd00523c'
         '6b05ccb539f811729820d5545eb50d6e'
         '2cc0ecf9fccb6e559a98003715ebf6df'
         'd068c19503b7be1868bcce5dab003628')

build() {
  cd "$srcdir/$pkgname-$pkgver"

  # Fix uninitialised pointer
  # https://bugs.launchpad.net/awn/+bug/562499
  patch -Np0 -i "$srcdir/688_687.diff"

  # Remove bzr dependency
  # https://bugs.launchpad.net/awn/+bug/707863
  patch -Np0 -i "$srcdir/821_820.diff"

  # Hide windows with skip taskbar state
  # https://bugs.launchpad.net/awn/+bug/707863
  patch -Np0 -i "$srcdir/824_823.diff"

  # Python2 fix
  sed -i 's@^#!.*python$@#!/usr/bin/python2@' awn-settings/{awnSettings.py.in,awnSettingsHelper.py}
  sed -i 's/with ("python"/with ("python2"/' applet-activation/main.c

  autoreconf -fi
  ./configure --prefix=/usr --sysconfdir=/etc \
              --disable-static \
              PYTHON=/usr/bin/python2
  make
}

check() {
  cd "$srcdir/$pkgname-$pkgver"

  make check
}

package() {
  cd "$srcdir/$pkgname-$pkgver"

  make GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 DESTDIR="$pkgdir" install

  install -m755 -d "$pkgdir/usr/share/gconf/schemas"
  gconf-merge-schema "$pkgdir/usr/share/gconf/schemas/awn.schemas" "$pkgdir"/etc/gconf/schemas/*.schemas
  rm -r "$pkgdir/etc"
}