aboutsummaryrefslogtreecommitdiffstats
path: root/community/pgexportdoc/APKBUILD
blob: c19de22d18452ad1d8d6a10780c6fb2b7a9f57f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# 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"