1 # Contributor: Carbon Jiao <http://archlive-pkg.googlecode.com>
5 #pkgver=$(date +%Y%m%d)
7 pkgdesc="Pidgin from latest mtn database, with gtalk video/audio support and extra with Chinese Fetion support"
9 url="http://pidgin.im/"
11 depends=('avahi' 'dbus-glib' 'farsight2' 'nss' 'startup-notification' 'libnice' 'libidn')
12 makedepends=('monotone' 'ca-certificates' 'python' 'perlxml' 'intltool' 'gtkspell' 'tcl' 'tk')
14 provides=('pidgin' 'linux-fetion')
17 install=pidgin.install
18 source=(autogen.sh protocol-makefile.patch config.patch pastie-649601.diff)
23 if [ -f "mtn/pidgin.mtn" ]; then
24 msg2 "Updating sources..."
25 mtn -d mtn/pidgin.mtn db migrate
26 mtn pull -d mtn/pidgin.mtn || return 1
28 msg2 "Downloading the mtn source, ..."
29 [ -d mtn ] && mkdir mtn
31 wget http://developer.pidgin.im/static/pidgin.mtn.bz2 1>/dev/null 2>/dev/null
32 bzip2 -d pidgin.mtn.bz2 1>/dev/null
36 msg "Creating build branch..."
37 [ -d $srcdir/im.pidgin.pidgin ] && rm -rf "$srcdir/im.pidgin.pidgin"
38 mtn -d $startdir/mtn/pidgin.mtn co -b im.pidgin.pidgin
40 msg "Fetch protocl of Chinese Fetion"
41 git clone git://github.com/gradetwo/fetion.git $srcdir/fetion
42 rm -rf `find $srcdir/fetion -name .git`
43 cp -r $srcdir/fetion $srcdir/im.pidgin.pidgin/libpurple/protocols/
44 cp $srcdir/autogen.sh $srcdir/im.pidgin.pidgin/
46 cd $srcdir/im.pidgin.pidgin
47 patch -Np1 -i $srcdir/config.patch
48 patch -Np1 -i $srcdir/protocol-makefile.patch
50 #patch pidgin for msn plus plugin
51 patch -Np0 -i $srcdir/pastie-649601.diff
53 msg "Start to compile and install pidgin"
54 cd $srcdir/${_gitname}-build
55 ./autogen.sh --prefix=/usr --sysconfdir=/etc --disable-schemas-install --disable-meanwhile \
56 --disable-nm --disable-perl --disable-gnutls --enable-cyrus-sasl --enable-vv --disable-doxygen \
57 --with-system-ssl-certs=/etc/ssl/certs || return 1
60 make DESTDIR="$pkgdir" install || return 1
62 # # 删除中文外的语言包 Delete the locale files except Chinese
63 # find ${pkgdir}/usr/share/locale/* -maxdepth 0 -type d ! -iregex ".*zh.CN" -exec rm -rf {} \;
65 # # Remove GConf schema file
66 # rm -rf "$pkgdir/etc" || return 1
68 # # Remove libpurple and pidgin development headers
69 # rm -rf "$pkgdir/usr/include" || return 1
71 # # Remove pkgconfig scripts
72 # rm -rf "$pkgdir/usr/lib/pkgconfig" || return 1
74 # # Remove libpurple aclocal macro file
75 # rm -rf "$pkgdir/usr/share/aclocal" || return 1
78 md5sums=('007c6b13756fa32e03ea39a8478fec1a'
79 '66cc2d20b0e15e5948662b42f7cb5fad'
80 '7845b5b5f263f48790939cd9e31dc375'
81 'eb60e05ef5945b9be784230e466ef9a2')