# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=vanessa_adt
pkgver=0.0.9
pkgrel=0
pkgdesc="Library of abstract data types"
url="http://horms.net/projects/perdition/"
arch="all"
license="LGPL2+"
depends=
depends_dev="vanessa_logger-dev"
makedepends="$depends_dev"
install=""
subpackages="$pkgname-dev"
source="http://horms.net/projects/vanessa/download/$pkgname/$pkgver/$pkgname-$pkgver.tar.bz2"

_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	cd "$_builddir"
	update_config_sub || return 1
	return 0
}

build() {
	export LDFLAGS="$LDFLAGS -lvanessa_logger"
	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="730f569b575cc6a18ae16fef3b449f3f  vanessa_adt-0.0.9.tar.bz2"
sha256sums="de4dd2d9d93a6539625b34517504e0c05c92462968d1965ba530e8eea0e3cad8  vanessa_adt-0.0.9.tar.bz2"
sha512sums="5066bb57c3ee314531cc5a45d5ac670277e98a868df46c7816f8b1049be3306be3711e62f397b34746fd7d13bbcbe109346704f26c8f3bd39754979070dd1cc4  vanessa_adt-0.0.9.tar.bz2"