1 # Maintainer: Chen Xing <cxcxcxcx@gmail.com>
3 pkgname=pidgin-fetion-git
7 pkgdesc="China Mobile Fetion Protocol Plugin for pidgin, git version maintained by standin000"
9 url="http://github.com/standin000/fetion"
11 makedepends=('avahi' 'tk' 'ca-certificates' 'intltool' 'git')
12 depends=('pidgin>=2.6.0')
15 _gitroot="git://github.com/standin000/fetion.git"
19 source=( http://downloads.sourceforge.net/pidgin/pidgin-$_pidginver.tar.bz2
25 msg "Connecting to GIT server...."
27 if [ -d "${srcdir}/${_gitname}" ] ; then
28 cd ${_gitname} && git pull --rebase
33 msg "GIT checkout done or server timeout"
34 msg "Starting make..."
36 cd "$srcdir/pidgin-$_pidginver"
37 rm -rf libpurple/protocols/fetion
38 cp -r ../${_gitname} libpurple/protocols/fetion
39 sed -i 's/qq/fetion/g' configure.ac
40 # patch -p1 < ../config.patch
41 # patch -p1 < ../protocol-makefile.patch
43 ./configure --prefix=/usr --sysconfdir=/etc --disable-schemas-install --disable-meanwhile \
44 --disable-nm --disable-perl --disable-gnutls --enable-cyrus-sasl --disable-doxygen \
45 --with-system-ssl-certs=/etc/ssl/certs || return 1
47 ./configure --prefix=/usr --sysconfdir=/etc --disable-schemas-install --disable-meanwhile \
48 --disable-nm --disable-perl --disable-gnutls --enable-cyrus-sasl --disable-doxygen \
49 --with-system-ssl-certs=/etc/ssl/certs || return 1
50 cd libpurple/protocols/fetion
52 mkdir -p $pkgdir/usr/lib/purple-2 || return 1
53 mv .libs/libfetion.so $pkgdir/usr/lib/purple-2/
58 'b37ab6c52db8355e8c70c044c2ba17c1'