blob: ef1d1433970b495748dae5022620438502b57cdb (
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
# Contributor: Kiyoshi Aman <kiyoshi.aman@gmail.com>
# Maintainer: Kiyoshi Aman <kiyoshi.aman@gmail.com>
pkgname=bitlbee
pkgver=3.2.1
pkgrel=0
pkgdesc="An IRC to other chat networks gateway"
url="http://www.bitlbee.org/"
arch="all"
license="GPL2"
depends=""
makedepends="glib-dev openssl-dev libotr3-dev"
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 \
--build=$CBUILD \
--host=$CHOST \
--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="6ee7c7a99eb59dfcf0307fcf44c14105 bitlbee-3.2.1.tar.gz
7c3f5a9c5b25b425e87ff38abc44282d bitlbee.initd
bf07d39a4b652c63415b411229c5e281 bitlbee.confd"
sha256sums="00f411dd7d6d28f30f0e73e46c9cbe88b4006e7f03adfe07b90a97280a290f59 bitlbee-3.2.1.tar.gz
55c81d36ad189408266ee2b7a4f4e8d41c4a1ef79a755d3d8d13d9e1dd8f5461 bitlbee.initd
2890ded4f7d240fec3d5aaaac636aa200be27283ba3589e6e5e68aabe2756cbb bitlbee.confd"
sha512sums="5df1ab94602a801024a459ef166e5515e94e202773b8ade838c55967865f706291d3b3fa63bdd7737d461e96cf8af2f191d5ea4451e14149ac28edb9f5bfce9f bitlbee-3.2.1.tar.gz
742ed67d57adf2e8fad7d07abc948af5e63e696f9aceb7852d798b86f01c10b591a9492410aad91b9d1e067d6124b2825554e2175741ef2e865f5581f018f0d7 bitlbee.initd
d86e85eecafe080d331034cfc0b1f38d8e5582772d1e1d7175d14b396e1ce3dfd1b94e8ee97ef54b85181b3eacf39bacd378a1da5014515ed909554708907991 bitlbee.confd"
|