# Template file for 'bitlbee'
pkgname=bitlbee
version=3.4.1
revision=4
build_style=gnu-configure
configure_args="--etcdir=/etc/bitlbee --sbindir=/usr/bin
 --pidfile=/run/${pkgname}/${pkgname}.pid
 --ipcsocket=/run/${pkgname}/${pkgname}.sock
 --ssl=openssl --strip=0 --otr=plugin --skype=plugin"
hostmakedepends="pkg-config asciidoc"
makedepends="libgcrypt-devel libotr-devel libressl-devel libglib-devel"
make_install_args="install-etc"
short_desc="Brings instant messaging (XMPP, MSN, Yahoo!, AIM, ICQ, Twitter) to IRC"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-2"
homepage="http://www.bitlbee.org/"
distfiles="http://get.bitlbee.org/src/$pkgname-$version.tar.gz"
checksum=500a0b19943040d67458eb3beb0a63d004abb2aa54a777addeb2a895d4f5c0e1

system_accounts="$pkgname"
bitlbee_homedir="/var/lib/$pkgname"

conf_files="
 /etc/${pkgname}/motd.txt
 /etc/${pkgname}/${pkgname}.conf
 /etc/skyped/skyped.conf
 /etc/skyped/skyped.cnf"

post_install() {
	vsv $pkgname
}
bitlbee-devel_package() {
	short_desc+=" - development files"
	depends="${sourcepkg}-${version}_${revision} ${makedepends}"
	pkg_install() {
		make DESTDIR=${PKGDESTDIR} install-dev
	}
}
