1 # Contributor: aleiphoenix <aleiphoenix@gmail.com>
6 pkgdesc="A RabbitMQ(amqp) library written in C-language"
9 makedepends=('mercurial' 'autoconf')
10 url="http://hg.rabbitmq.com/rabbitmq-c"
13 _hgroot="http://hg.rabbitmq.com/rabbitmq-c"
16 _hgcodegen="http://hg.rabbitmq.com/rabbitmq-codegen"
17 _hgcodegenname="codegen"
21 msg "Connecting to the mercurial server...."
23 if [[ -d $srcdir/$_hgname ]] ; then
26 msg "The local files are updated."
28 hg clone $_hgroot $_ghname
32 if [[ -d $srcdir/$_hgname/$_hgcodegenname ]] ; then
35 msg "The local files are updated."
38 hg clone $_hgcodegen $_hgcodegenname
41 msg "mercurial checkout done"
42 msg "Starting make..."
45 # make sure we using the python2
46 sed -i 's/checkPython\ python$/checkPython\ python2/g' configure
51 make DESTDIR=$pkgdir install
53 rm -rf $srcdir/$_gitname-build