# Contributor: Peter Bui # Maintainer: Kiyoshi Aman pkgname=bitlbee pkgver=3.5.1 pkgrel=3 pkgdesc="An IRC to other chat networks gateway" url="https://www.bitlbee.org/" arch="all" license="GPL-2.0" makedepends="glib-dev openssl-dev libotr-dev" subpackages="$pkgname-dev $pkgname-doc $pkgname-otr $pkgname-openrc" source="http://get.bitlbee.org/src/$pkgname-$pkgver.tar.gz openssl-1.1.patch $pkgname.initd $pkgname.confd " builddir="$srcdir/$pkgname-$pkgver" build() { cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --ssl=openssl \ --otr=plugin \ --prefix=/usr \ --etcdir=/etc/bitlbee make } package() { cd "$builddir" make DESTDIR="$pkgdir" install install-etc install-dev install -m755 -D "$srcdir"/$pkgname.initd \ "$pkgdir"/etc/init.d/$pkgname install -m644 -D "$srcdir"/$pkgname.confd \ "$pkgdir"/etc/conf.d/$pkgname 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 } sha512sums="4eb3b0d3a92910c8dd789cd23338cc6296bf40212c5244fcb27a88ede10e86424ea59c78e719841863701a7fdd8c61819f2775f7b58833e287d9110e49d036f3 bitlbee-3.5.1.tar.gz 30361a2e5c9b6f08da521b9a802ff9ac74127434774eb5e68f051b545fd4bbaadb46cc76bab97d7e3139ea27db622fc7d889ce61c3464fedaff8775fa3e29444 openssl-1.1.patch 300c3445b9be6dac41bbd6d3a3ef5b871668743d4ea68dd779962d7af941cdaac61cb7c61e7ab2610bffac6dd9accc7ef9590593aef45e6930e2f49abaf9bf40 bitlbee.initd d86e85eecafe080d331034cfc0b1f38d8e5582772d1e1d7175d14b396e1ce3dfd1b94e8ee97ef54b85181b3eacf39bacd378a1da5014515ed909554708907991 bitlbee.confd"