# Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=charybdis pkgver=3.4.0 pkgrel=0 pkgdesc="A highly-scalable IRCv3-compliant IRC daemon" url="http://www.atheme.org/project/charybdis" arch="all" license="GPL2" pkgusers="ircd" depends="" depends_dev="bison flex openssl-dev zlib-dev libtool" makedepends="$depends_dev" install="$pkgname.pre-install" subpackages="$pkgname-dev $pkgname-doc" source="saveas-http://www.stack.nl/~jilles/irc/$pkgname-$pkgver.tbz2/$pkgname-$pkgver.tar.bz2 $pkgname.initd $pkgname.confd" _builddir="$srcdir"/$pkgname-$pkgver build() { cd "$_builddir" ./configure \ --prefix=/usr \ --sysconfdir=/etc/charybdis \ --localstatedir=/var \ --libexecdir=/usr/lib \ --disable-assert \ --enable-ssl \ --enable-ipv6 \ --with-rundir=/var/run \ --with-program-prefix=charybdis- make } package() { cd "$_builddir" make DESTDIR="$pkgdir" install rm -f "$pkgdir"/usr/lib/*.la install -m755 -D "$srcdir"/$pkgname.initd \ "$pkgdir"/etc/init.d/charybdis-ircd || return 1 install -m644 -D "$srcdir"/$pkgname.confd \ "$pkgdir"/etc/conf.d/charybdis-ircd || return 1 chown ircd "$pkgdir"/var/run/charybdis chown ircd "$pkgdir"/var/log/charybdis chown ircd "$pkgdir"/var/charybdis } md5sums="b31c126ae76938233d6a0a6d1123dce8 charybdis-3.4.0.tar.bz2 b11b3bba9a61f2b288ad83b62dbb67bf charybdis.initd 4bbd6b06a4389bd4826ab8ba7f76393a charybdis.confd"