# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=pgexportdoc
pkgver=0.1.3
pkgrel=0
pkgdesc="CLI tool for export XML, TEXT and BYTEA documents from PostgreSQL"
url="https://github.com/okbob/pgexportdoc"
arch="all"
license="BSD"
makedepends="libedit-dev libxml2-dev postgresql-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/okbob/$pkgname/archive/$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"
	make
}

check() {
	cd "$builddir"
	./pgexportdoc -V
}

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

sha512sums="a02433dc5d2886ee9c3685e31f39af5bade5359b4ac444a359b3c149cc2db8817b2fbe5eb60e646f2bb8f9b7a901b2d10563f36ded1ef4f8e8d044cc71338d19  pgexportdoc-0.1.3.tar.gz"
