# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=pgexportdoc
pkgver=0.1.1
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="e3589e3a2fe7d77230160711e921908c417e693fd802ee1f803bd2738f38e334d3a3d8df47aa90153c729e6f7f45867c3864909ad609d79b99acfd2e8bf48f55  pgexportdoc-0.1.1.tar.gz"