# Template file for 'liblogging'
pkgname=liblogging
version=1.0.4
revision=1
build_style=gnu-configure
configure_args="--disable-static $(vopt_enable systemd journal)"
hostmakedepends="pkg-config automake libtool"
makedepends="$(vopt_if systemd systemd-devel)"
short_desc="Easy to use, portable, open source library for system logging"
maintainer="Juan RP <xtraeme@gmail.com>"
license="LGPL-2.1"
homepage="http://www.liblogging.org/"
distfiles="http://download.rsyslog.com/liblogging/${pkgname}-${version}.tar.gz"
checksum=aceb5d2aa8bdc771ff66f407f9adf4176b654db63e34a8605795b68be537b81c

# Package build options
build_options="systemd"

pre_configure() {
	autoreconf -fi
}

liblogging-devel_package() {
	depends="${sourcepkg}>=${version}_${revision}"
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/pkgconfig
		vmove "usr/lib/*.so"
	}
}
