aports/community/postgresql-orafce/APKBUILD

36 lines
1.0 KiB
Plaintext

# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=postgresql-orafce
_pkgname=orafce
pkgver=3.6.0
_pkgver=VERSION_${pkgver//./_}
pkgrel=1
pkgdesc="Oracle's compatibility functions and packages for PostgreSQL"
url="https://github.com/orafce/orafce"
arch="all"
license="BSD"
depends="postgresql"
makedepends="bison flex postgresql-dev"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/orafce/$_pkgname/archive/$_pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$_pkgver"
options="!check" # XXX: installcheck requires running PostgreSQL
build() {
cd "$builddir"
make USE_PGXS=1 all
}
package() {
cd "$builddir"
make USE_PGXS=1 DESTDIR="$pkgdir" install
cd "$pkgdir"
mv ./usr/share/doc/postgresql/extension \
./usr/share/doc/$pkgname
rmdir ./usr/share/doc/postgresql
}
sha512sums="574128248caae7024b7cbabb3cb6a74cf493bb7e3cf20831febab9a62d788790bc166b5e7e67c110887d7ad9383b22f4521b28fbdb4c709ff3231951ad02d108 postgresql-orafce-3.6.0.tar.gz"