summaryrefslogtreecommitdiff
path: root/extra/gnome-panel/PKGBUILD
blob: d7014aab0e650c341c77c4b99d01aeaa3f58c8e4 (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
# $Id: PKGBUILD 108473 2011-01-31 14:15:15Z ibiru $
# Maintainer: Jan de Groot <jgc@archlinux.org>

pkgbase=gnome-panel
pkgname=('gnome-panel' 'gnome-panel-bonobo')
pkgver=2.32.1
pkgrel=2
arch=('i686' 'x86_64')
license=('GPL')
url="http://www.gnome.org"
makedepends=('libwnck' 'gnome-menus' 'evolution-data-server' 'gnome-desktop' 'libgweather' 'librsvg' 'hicolor-icon-theme' 'libcanberra' 'libbonoboui' 'gnome-doc-utils' 'intltool' 'networkmanager' 'gobject-introspection')
options=('!libtool' '!emptydirs')
source=(http://ftp.gnome.org/pub/gnome/sources/${pkgbase}/2.32/${pkgbase}-${pkgver}.tar.bz2
        evolution-appointments.patch)
sha256sums=('8f7828eb7a21c817a73b697844a4e20256059b32386414a10f97d51e7d9fca5f'
            'c42168cc1377f9dfb2e02ed0b47ee89bdb89d46e82551b9582801fdc375294bb')

build() {
  cd "${srcdir}/${pkgbase}-${pkgver}"

  #https://bugzilla.gnome.org/show_bug.cgi?id=633566
  patch -Np1 -i "${srcdir}/evolution-appointments.patch"

  ./configure --prefix=/usr --sysconfdir=/etc \
      --localstatedir=/var --disable-static \
      --libexecdir=/usr/lib/gnome-panel \
      --disable-scrollkeeper
  make
  sed -e 's/$(am__append_1)//' -i Makefile
}

package_gnome-panel() {
  pkgdesc="The GNOME Panel"
  depends=('gnome-menus>=2.30.5' 'gnome-desktop>=2.32.1' 'evolution-data-server>=2.32.1' 'librsvg>=2.32.1' 'libcanberra>=0.25' 'libwnck>=2.30.6' 'hicolor-icon-theme')
  optdepends=('gnome-panel-bonobo: libbonoboui-based applet support')
  groups=('gnome')
  install=gnome-panel.install
  cd "${srcdir}/${pkgbase}-${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/${pkgname}.schemas" --domain gnome-panel-2.0 ${pkgdir}/etc/gconf/schemas/*.schemas
  rm -f ${pkgdir}/etc/gconf/schemas/*.schemas
}

package_gnome-panel-bonobo() {
  pkgdesc="Modules for libbonoboui-based applet support for the GNOME Panel"
  depends=('libbonoboui>=2.24.3' "gnome-panel=${pkgver}")
  conflicts=('gnome-panel<2.31.92')
  install=gnome-panel-bonobo.install

  cd "${srcdir}/${pkgbase}-${pkgver}"
  make -C bonobo "${pkgdir}" DESTDIR="${pkgdir}" install
}