From 204fcfaa4b3de6ca29441648a1e08107eb7bbe0d Mon Sep 17 00:00:00 2001 From: Jakub Jirutka Date: Mon, 9 Oct 2017 00:32:31 +0200 Subject: community/pgimportdoc: move from testing --- community/pgimportdoc/APKBUILD | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 community/pgimportdoc/APKBUILD (limited to 'community') diff --git a/community/pgimportdoc/APKBUILD b/community/pgimportdoc/APKBUILD new file mode 100644 index 0000000000..8e77418bfe --- /dev/null +++ b/community/pgimportdoc/APKBUILD @@ -0,0 +1,29 @@ +# Contributor: Jakub Jirutka +# Maintainer: Jakub Jirutka +pkgname=pgimportdoc +pkgver=0.1.2 +pkgrel=0 +pkgdesc="CLI tool for import XML, TEXT and BYTEA documents to PostgreSQL" +url="https://github.com/okbob/pgimportdoc" +arch="all" +license="BSD" +makedepends="libedit-dev libxml2-dev postgresql-dev zlib-dev" +source="$pkgname-$pkgver.tar.gz::https://github.com/okbob/$pkgname/archive/$pkgver.tar.gz" +builddir="$srcdir/$pkgname-$pkgver" + +build() { + cd "$builddir" + make USE_PGXS=1 all +} + +check() { + cd "$builddir" + ./pgimportdoc -V +} + +package() { + cd "$builddir" + make USE_PGXS=1 DESTDIR="$pkgdir" install +} + +sha512sums="f4e0cba9ec81bebb8530a290528c238c8aa16730f6adc89843db75e143e66262b72ac791e943df9d5897eea90c29638b161d7ca08793692d1b5e7d2c1d99286c pgimportdoc-0.1.2.tar.gz" -- cgit v1.2.3