aboutsummaryrefslogtreecommitdiffstats
path: root/main/charybdis/APKBUILD
blob: b6faf1db363a01b5919c71081bacc7e88ea614dd (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
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=charybdis
pkgver=4.1.2
pkgrel=0
pkgdesc="A highly-scalable IRCv3-compliant IRC daemon"
url="http://atheme.org/projects/charybdis.html"
arch="all"
license="BSD GPL-2.0"
pkgusers="ircd"
makedepends="automake autoconf libtool
bison flex openssl-dev zlib-dev file
sqlite-dev libltdl"
install="$pkgname.pre-install"
subpackages="$pkgname-openrc"
source="$pkgname-$pkgver.tar.gz::https://github.com/charybdis-ircd/$pkgname/archive/$pkgname-$pkgver.tar.gz
	$pkgname.initd
	$pkgname.confd"
builddir="$srcdir"/$pkgname-$pkgname-$pkgver

prepare() {
	default_prepare
	./autogen.sh
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc/charybdis \
		--localstatedir=/var \
		--libexecdir=/usr/lib \
		--libdir=/usr/lib/charybdis \
		--enable-epoll \
		--with-custom-branding=alpinelinux \
		--enable-openssl \
		--enable-ipv6 \
		--with-shared-sqlite \
		--with-rundir=/var/run/charybdis \
		--with-logdir=/var/log/charybdis \
		--with-moduledir=/usr/lib/charybdis/modules \
		--with-program-prefix=charybdis-
	make -j1
}

check() {
	make check
}

package() {
	make -j1 DESTDIR="$pkgdir" install	
	install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/charybdis-ircd
	install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/charybdis-ircd
	mkdir -p "$pkgdir"/var/run/charybdis
	mkdir -p "$pkgdir"/var/log/charybdis
	chown ircd "$pkgdir"/var/run/charybdis
	chown ircd "$pkgdir"/var/log/charybdis
}

sha512sums="409d64f1e6660c667699013436f434e419c5a8fb49acc9db0f2f707d0aee55d93df58c81beb60fb736cf8bd64499a64519a32d15b384aa628801eb2f20620545  charybdis-4.1.2.tar.gz
584d28ded8c943172764ee89a0dcf2593e8a71a9ce876635b6fb86485171caad7c5e7fe0ec18fc217bfe93b7ceb865e9930e3af74458cb1f0b698c38fd70947f  charybdis.initd
1886b312b0ea40945de45db7a379bff2a3af426155fb77676e03f21f8d1d733e057fb5c3cb65fb72bb56008c4c92f3d2d0010563f871fd0802446de443ddfd5e  charybdis.confd"