summaryrefslogtreecommitdiff
path: root/libre/xchat-gnome-libre/PKGBUILD
blob: 64099ba34229c22d34e5bcbd7766c38330364d69 (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
# $Id: PKGBUILD 112861 2011-03-07 10:29:01Z eric $
# Maintainer: Allan McRae <allan@archlinux.org>
# Contributor: Jan de Groot <jgc@archlinux.org>

pkgname=xchat-gnome
pkgver=0.26.1
pkgrel=5
pkgdesc="GNOME frontend to the popular X-Chat IRC client."
arch=('i686' 'x86_64' 'mips64el')
license=('GPL')
url="http://xchat-gnome.navi.cx/"
depends=('libgnomeui>=2.18.1-2' 'libsexy>=0.1.11' 'gconf>=2.18.0.1-4'
         'hicolor-icon-theme' 'desktop-file-utils' 'libcanberra' 'libsm')
makedepends=('gettext' 'perlxml' 'python2' 'tcl' 'libnotify' 'gnome-doc-utils>=0.10.3'
             'intltool' 'pkg-config')
optdepends=('libnotify: notifications'
            'python2: plugin'
            'tcl: plugin')
options=('!libtool')
install=xchat-gnome.install
source=(http://ftp.gnome.org/pub/gnome/sources/${pkgname}/0.26/${pkgname}-${pkgver}.tar.gz
        gtk2-2.20.patch xchat-gnome-0.26.1-deprecated-symbol.patch
        no-opera.patch)
md5sums=('e355d71d76cd97a0764e37bfacf09101'
         'dafc2536a0c5ee3f8015af81fce69656'
         'f82417277f0b5e83334147c4bf63d531'
         'b3e5a2e9f7ac96d36ee3567687a546bc')

build() {
  cd "$srcdir/${pkgname}-${pkgver}"
  patch -Np1 -i "$srcdir/gtk2-2.20.patch"
  patch -Np1 -i "$srcdir/xchat-gnome-0.26.1-deprecated-symbol.patch"
  patch -Np0 -i "$srcdir/no-opera.patch"
  sed -i 's/notify_notification_new (summary, escaped, NULL, NULL);/notify_notification_new (summary, escaped, NULL);/' plugins/notify-osd/notify-osd.c
  sed -i -e "s/       /\t/" src/common/dbus/Makefile.in

  ./configure --prefix=/usr --sysconfdir=/etc \
              --localstatedir=/var --disable-static \
	      --enable-ipv6 --enable-shm \
	      --disable-gtkfe --disable-scrollkeeper
  make
}

package() {  
  cd "$srcdir/${pkgname}-${pkgver}"
  make GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 DESTDIR="${pkgdir}" install
  
  install -d "$pkgdir/usr/share/gconf/schemas"
  gconf-merge-schema "$pkgdir/usr/share/gconf/schemas/${pkgname}.schemas" \
    "$pkgdir"/etc/gconf/schemas/*.schemas
  rm -f "$pkgdir"/etc/gconf/schemas/*.schemas
}