aboutsummaryrefslogtreecommitdiffstats
path: root/community/postgresql-orafce/APKBUILD
blob: 20d6954a80bbf48ccf5c445aaddce4c4f4ebbd23 (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
30
31
32
33
34
35
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=postgresql-orafce
_pkgname=orafce
pkgver=3.8.0
_pkgver=VERSION_${pkgver//./_}
pkgrel=0
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="0da3791ad19eb88721941e289982dc8ae73213f746eea36ecea19f7661152a916b493099c3e615c6c96dd660cbc85b720dd45661e888e6a96e346390d4d2d163  postgresql-orafce-3.8.0.tar.gz"