aboutsummaryrefslogtreecommitdiffstats
path: root/main/bitlbee/APKBUILD
blob: 4cec5d2450f418efb47d3b283535a6d5caa29f39 (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: Peter Bui <pnutzh4x0r@gmail.com>
# Maintainer: Kiyoshi Aman <kiyoshi.aman@gmail.com>
pkgname=bitlbee
pkgver=3.4.2
pkgrel=2
pkgdesc="An IRC to other chat networks gateway"
url="http://www.bitlbee.org/"
arch="all"
license="GPL2"
depends=""
makedepends="glib-dev libressl-dev libotr-dev"
install=""
subpackages="$pkgname-dev $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 install-dev || 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="3b620bf80c35d673cd08311792ec96be  bitlbee-3.4.2.tar.gz
59a9971b6fd7c04f8647b0179789f664  bitlbee.initd
bf07d39a4b652c63415b411229c5e281  bitlbee.confd"
sha256sums="69c85554def74f314e3b6e390389a30b0e748f23ef37883e9d7545ee2c45ea57  bitlbee-3.4.2.tar.gz
6fdc668d4933e497e60e8b0269cf9230702e6b2155fee0517bd6caf0b3a0c27c  bitlbee.initd
2890ded4f7d240fec3d5aaaac636aa200be27283ba3589e6e5e68aabe2756cbb  bitlbee.confd"
sha512sums="2b839c014cfad037d815aa0e0867dda1b4628ff076d8de6fec1e80ab1499bca565d9afbe104929d492ff68c86b745cc3f76acbeba102766d656f2d359b70302e  bitlbee-3.4.2.tar.gz
300c3445b9be6dac41bbd6d3a3ef5b871668743d4ea68dd779962d7af941cdaac61cb7c61e7ab2610bffac6dd9accc7ef9590593aef45e6930e2f49abaf9bf40  bitlbee.initd
d86e85eecafe080d331034cfc0b1f38d8e5582772d1e1d7175d14b396e1ce3dfd1b94e8ee97ef54b85181b3eacf39bacd378a1da5014515ed909554708907991  bitlbee.confd"