# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=vanessa_logger
pkgver=0.0.10
pkgrel=0
pkgdesc="Logging library"
url="http://horms.net/projects/perdition/"
arch="all"
license="LGPL-2.0-or-later"
depends=
depends_dev=""
makedepends="$depends_dev"
install=
subpackages="$pkgname-dev $pkgname-doc"
source="http://horms.net/projects/vanessa/download/$pkgname/$pkgver/$pkgname-$pkgver.tar.bz2
		fix-standard.patch
		"

_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	cd "$_builddir"
	update_config_sub || return 1
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
	return 0
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
}

md5sums="70a626751459d6f27c3fcd99c52617d6  vanessa_logger-0.0.10.tar.bz2
201bc3e8e17b7003ee8befb87dc47f81  fix-standard.patch"
sha256sums="f5517dcd31d1af11ca2dce6a281fa3a3bedea98e0441e4b3895583c23be5353f  vanessa_logger-0.0.10.tar.bz2
47d23d2eb7800fa642a20658d77ee992f70ebc979713fe05bd6f5d3e05629796  fix-standard.patch"
sha512sums="38accb1563485b8f1ab0fbfc424336df71d6ac9c0baee669000a0ff8f0b5c3475d0bd3e5629c831ab30e7920877026dd2d55309247dd4940339a852da61a35fa  vanessa_logger-0.0.10.tar.bz2
0b8c52668f7789073984e3573a3c3b675b9027eea31f8185345f6baca0a5dfb22397858b342eb5069a20d07b8e7a4c9c4f4bd257bbad7cd692c39b8f606c4ac5  fix-standard.patch"
