1 # Maintainer: Daniel J Griffiths <ghost1227@archlinux.us>
3 pkgname=bitlbee-otr-bzr
6 pkgdesc="An IRC to IM gateway. Development version."
8 url="http://bitlbee.org"
10 depends=('gnutls' 'glib2' 'libotr')
11 makedepends=('bzr' 'xmlto' 'docbook-xsl')
12 optdepends=('xinetd: to run bitlbee through xinetd')
14 conflicts=('bitlbee' 'bitlbee-bzr')
15 install=bitlbee.install
16 source=(bitlbee.rcd bitlbee.xinetd)
17 md5sums=('90893b706e0e50d37cfe6b283bc7d46c' 'bdc7683770090463028ec8d583fa34ce')
18 backup=('etc/bitlbee/welcome.txt' 'etc/bitlbee/motd.txt' 'etc/bitlbee/bitlbee.conf')
20 _bzrbranch=http://code.bitlbee.org/bitlbee
26 msg "Connecting to the server...."
28 bzr checkout ${_bzrbranch}
30 msg "BZR checkout done or server timeout"
31 msg "Starting make..."
33 [ -d ./${_bzrmod}-build ] && rm -rf ./${_bzrmod}-build
34 cp -r ./${_bzrmod} ./${_bzrmod}-build
37 ./configure --prefix=/usr \
39 --etcdir=/etc/bitlbee/ \
40 --pidfile=/var/run/bitlbee/bitlbee.pid \
41 --ipcsocket=/var/run/bitlbee/bitlbee.sock \
47 cd ${srcdir}/${_bzrmod}-build
49 install -dm755 ${pkgdir}/var/lib
50 install -o65 -g65 -dm0770 ${pkgdir}/var/lib/bitlbee
51 install -dm755 ${pkgdir}/var/run
52 install -o65 -g65 -dm755 ${pkgdir}/var/run/bitlbee
53 install -Dm644 ${srcdir}/bitlbee.xinetd \
54 ${pkgdir}/etc/xinetd.d/bitlbee
55 install -D -m755 ${srcdir}/bitlbee.rcd \
56 ${pkgdir}/etc/rc.d/bitlbee || return 1
58 make DESTDIR=${pkgdir} install || return 1
59 make DESTDIR=${pkgdir} install-etc || return 1
60 make DESTDIR=${pkgdir} install-dev || return 1
62 # rm -rf ${srcdir}/${_bzrmod}-build
65 # vim:set ts=2 sw=2 et: