aboutsummaryrefslogtreecommitdiffstats
path: root/main/bitlbee/APKBUILD
blob: e0b35bafdda5683d1f2ce5b52297abb0cc8a4b06 (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
# Contributor: Kiyoshi Aman <kiyoshi.aman@gmail.com>
# Maintainer: Kiyoshi Aman <kiyoshi.aman@gmail.com>
pkgname=bitlbee
pkgver=3.0.3
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
	$pkgname.post-install
	"

_builddir="$srcdir/$pkgname-$pkgver"
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -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
}
otr() {
    mkdir -p "$subpkgdir"/usr/lib
    mv "$pkgdir"/usr/lib/bitlbee "$subpkgdir"/usr/lib
}

md5sums="4fe688e3a80efe011743f4c9265c0310  bitlbee-3.0.3.tar.gz
6b3c70649ececec230d145b62778ad61  bitlbee.initd
bf07d39a4b652c63415b411229c5e281  bitlbee.confd
2d91f7ae46d69560d7f156f282dceaef  bitlbee.post-install"