blob: 5d6678e280711b5020e3d7bd0a0bd8cc476d4b20 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# Contributor: Peter Bui <pnutzh4x0r@gmail.com>
# Maintainer: Kiyoshi Aman <kiyoshi.aman@gmail.com>
pkgname=bitlbee
pkgver=3.5.1
pkgrel=7
pkgdesc="An IRC to other chat networks gateway"
url="https://www.bitlbee.org/"
arch="all"
license="GPL-2.0-or-later"
makedepends="python3 glib-dev gnutls-dev libotr-dev"
subpackages="$pkgname-dev $pkgname-doc $pkgname-otr $pkgname-openrc"
source="http://get.bitlbee.org/src/$pkgname-$pkgver.tar.gz
$pkgname.initd
$pkgname.confd
"
build() {
cd "$builddir"
PYTHON=python3 \
./configure \
--build=$CBUILD \
--host=$CHOST \
--otr=plugin \
--prefix=/usr \
--etcdir=/etc/bitlbee \
--ssl=gnutls # https://bugs.bitlbee.org/ticket/886
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
300c3445b9be6dac41bbd6d3a3ef5b871668743d4ea68dd779962d7af941cdaac61cb7c61e7ab2610bffac6dd9accc7ef9590593aef45e6930e2f49abaf9bf40 bitlbee.initd
d86e85eecafe080d331034cfc0b1f38d8e5582772d1e1d7175d14b396e1ce3dfd1b94e8ee97ef54b85181b3eacf39bacd378a1da5014515ed909554708907991 bitlbee.confd"
|