updated on Sun Jan 15 16:02:00 UTC 2012
[aur-mirror.git] / pidgin-fetion / PKGBUILD
blob77dd99a6ba8857122c6e1d37acbea8622539cb1d
1 # Maintainer: Weng Xuetian <hurricanek@126.com>
3 pkgname=pidgin-fetion
4 _pidginver=`pidgin --version | awk '{print $2}'`
5 _gitver=09cd42145888da92cdf3bbfc78cd55abd1f59b69
6 pkgver=0.98
7 pkgrel=6
8 pkgdesc="China Mobile Fetion Protocol Plugin for pidgin"
9 arch=('i686' 'x86_64')
10 url="http://github.com/gradetwo/fetion"
11 license=('GPL')
12 makedepends=('avahi' 'tk' 'ca-certificates' 'intltool')
13 depends=('pidgin>=2.6.0')
14 options=('!libtool')
15 source=(http://github.com/gradetwo/fetion/tarball/$_gitver
16 http://downloads.sourceforge.net/pidgin/pidgin-$_pidginver.tar.bz2
17 autogen.sh.tar.gz protocol-makefile.patch config.patch
18 986.patch)
20 build() {
21 # cd $srcdir/gradetwo-fetion-$_gitver
22 cd $srcdir/gradetwo-fetion-09cd421
23 patch -p0 -i $srcdir/986.patch
24 cd "$srcdir/pidgin-$_pidginver"
25 rm -rf libpurple/protocols/fetion
26 # mv ../gradetwo-fetion-$_gitver libpurple/protocols/fetion
27 mv ../gradetwo-fetion-09cd421 libpurple/protocols/fetion
28 mv ../autogen.sh .
29 patch -p1 < ../config.patch
30 patch -p1 < ../protocol-makefile.patch
32 ./autogen.sh --prefix=/usr --sysconfdir=/etc --disable-schemas-install --disable-meanwhile \
33 --disable-nm --disable-perl --disable-gnutls --enable-cyrus-sasl --disable-doxygen \
34 --with-system-ssl-certs=/etc/ssl/certs || return 1
35 cd libpurple/protocols/fetion
36 make || return 1
37 mkdir -p $pkgdir/usr/lib/purple-2 || return 1
38 mv .libs/libfetion.so $pkgdir/usr/lib/purple-2/
42 md5sums=('4f348c0e78aa686f4857949512285eae'
43 '8d0ff6215b2d023eaa8efef59097ef83'
44 'fc8a37c4c9c00773b900f59c005a09df'
45 'f8789e38d2dfee0f64687c32c07ea1cb'
46 '7845b5b5f263f48790939cd9e31dc375'
47 '42e8eb10db1f67dff261147885037a9d')