aboutsummaryrefslogtreecommitdiffstats
path: root/community/pgexportdoc/APKBUILD
blob: b30674ebc28b4b540df63a0e0773fbf5e7c1e496 (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.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"