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

build() {
	make
}

check() {
	./pgexportdoc -V
}

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

sha512sums="
178d019f0ead810680bb6c06a30726a8872815cc5ffbf3f8270817e82ccd538508fd5070076c2ddbe8c0e458272dd714b361fc8fd442e4a1182dff383336d341  pgexportdoc-0.1.4.tar.gz
"
