aboutsummaryrefslogtreecommitdiffstats
path: root/community/pgexportdoc/APKBUILD
blob: 569a8c17c8f7c078d910e8fed6be29688a0659ef (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=1
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="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"