# Contributor:
# Maintainer:
pkgname=log4cplus
pkgver=1.2.1
pkgrel=0
_ver=${pkgver%%_rc*}
_rc=${pkgver##*_rc}
[ "$_rc" = "$pkgver" ] || _ver="${_ver}-rc$_rc"
pkgdesc="Logging Framework for C++"
url="https://sourceforge.net/p/log4cplus/wiki/Home/"
arch="all"
license="Apache-2.0"
depends=""
depends_dev=""
makedepends="$depends_dev"
install=""
subpackages="$pkgname-dev"
source="https://downloads.sourceforge.net/$pkgname/$pkgname-$_ver.tar.gz"
builddir="$srcdir/$pkgname-$_ver"

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--with-working-c-locale
	make
}

check() {
	cd "$builddir"
	make check
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

sha512sums="6996378061e591e8e71f9aaa9851ab7c0be6fbac56ffb30d60279538ad204f96ded9c8eb1c3f09317b208326b13c3cf89d9dac659e1b8edfbd4cd3d18d5bc6ef  log4cplus-1.2.1.tar.gz"
