updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / carrier-svn / PKGBUILD
blobf193b15d76cfe6a5c7d8692acfcc122cf56a11de
1 # Maintainer: Jonathan Schmidt <j.schmidt@archlinux.us>
2 pkgname=carrier-svn
3 pkgver=89
4 pkgrel=1
5 pkgdesc="Pidgin fork providing minor GUI enhancements (formerly funpidgin)"
6 arch=(i686 x86_64)
7 url="http://funpidgin.sf.net"
8 license=('GPL')
9 depends=('gtk2' 'startup-notification' 'hicolor-icon-theme' 'libxss' 'dbus-glib'
10         'farsight2' 'libsasl' 'nss' 'silc-toolkit' 'gconf>=2.18.0.1-4'
11         'desktop-file-utils')
12 makedepends=('subversion')
13 optdepends=('gstreamer0.10-good: to play sounds'
14             'avahi: Bonjour protocol support'
15             'ca-certificates: SSL CA certificates'
16             'tk: Tcl/Tk scripting support'
17             'gtkspell: for spelling error highlighting'
18             'aspell: for spelling correction')
19 provides=('carrier' 'libpurple=2.6.4' 'pidgin' 'finch')
20 conflicts=('carrier' 'libpurple' 'pidgin' 'finch')
21 options=(!libtool !emptydirs)
22 install=carrier-svn.install
23 source=(oscar-fix.patch)
24 md5sums=(4722762ee279256d06033e57b0dee9de)
26 _svntrunk=https://funpidgin.svn.sourceforge.net/svnroot/funpidgin/carrier/trunk
27 _svnmod=carrier
29 build() {
30   cd "$srcdir"
32   if [ -d $_svnmod/.svn ]; then
33     (cd $_svnmod && svn up -r $pkgver)
34   else
35     svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
36   fi
38   msg "SVN checkout done or server timeout"
40   rm -rf "$srcdir/$_svnmod-build"
41   cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
42   cd "$srcdir/$_svnmod-build"
44   #msg "Applying Carrier patches..."
45   #quilt push -a || return 1
47   msg "Patching AIM/ICQ to fix garbling of messages from mobile users..."
48   patch -Np0 -i $startdir/oscar-fix.patch || return 1
50   msg "Starting make..."
52   ./autogen.sh
53   ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
54               --disable-schemas-install --enable-cyrus-sasl --disable-doxygen \
55               --disable-gnutls --with-system-ssl-certs=/etc/ssl/certs \
56               --disable-meanwhile --disable-perl --disable-tk --disable-tcl \
57               --disable-gtkspell --disable-avahi --disable-nm \
58               --disable-gevolution --disable-nls --disable-idn \
59               --disable-gestures || return 1
60   make || return 1
61   make -j1 GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 DESTDIR="$pkgdir/" install || return 1
63   install -m755 -d "$pkgdir"/usr/share/gconf/schemas
64   gconf-merge-schema "$pkgdir"/usr/share/gconf/schemas/${pkgname}.schemas \
65     "$pkgdir"/etc/gconf/schemas/*.schemas || return 1
66   rm -f "$pkgdir"/etc/gconf/schemas/*.schemas