# Contributor: Kiyoshi Aman # Maintainer: Kiyoshi Aman pkgname=bitlbee pkgver=3.0.5 pkgrel=0 pkgdesc="An IRC to other chat networks gateway" url="http://www.bitlbee.org/" arch="all" license="GPL-2" depends= makedepends="glib-dev openssl-dev libotr-dev" install="$pkgname.post-install" subpackages="$pkgname-doc $pkgname-otr" source=" http://get.bitlbee.org/src/$pkgname-$pkgver.tar.gz $pkgname.initd $pkgname.confd " _builddir="$srcdir/$pkgname-$pkgver" prepare() { local i cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p0 -i "$srcdir"/$i || return 1;; esac done } build() { cd "$_builddir" ./configure --ssl=openssl \ --otr=plugin \ --prefix=/usr \ --etcdir=/etc/bitlbee || return 1 make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install install-etc || return 1 install -m755 -D "$srcdir"/$pkgname.initd \ "$pkgdir"/etc/init.d/$pkgname || return 1 install -m644 -D "$srcdir"/$pkgname.confd \ "$pkgdir"/etc/conf.d/$pkgname || return 1 mkdir -p "$pkgdir"/var/lib/bitlbee chown nobody:nobody "$pkgdir"/var/lib/bitlbee } otr() { mkdir -p "$subpkgdir"/usr/lib mv "$pkgdir"/usr/lib/bitlbee "$subpkgdir"/usr/lib } md5sums="9ff97260a2a7f3a7d102db158a8d9887 bitlbee-3.0.5.tar.gz 7c3f5a9c5b25b425e87ff38abc44282d bitlbee.initd bf07d39a4b652c63415b411229c5e281 bitlbee.confd"