aboutsummaryrefslogtreecommitdiffstats
path: root/main/pgcluster/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'main/pgcluster/APKBUILD')
-rw-r--r--main/pgcluster/APKBUILD11
1 files changed, 9 insertions, 2 deletions
diff --git a/main/pgcluster/APKBUILD b/main/pgcluster/APKBUILD
index f3fdf8be7f..e68949d676 100644
--- a/main/pgcluster/APKBUILD
+++ b/main/pgcluster/APKBUILD
@@ -17,8 +17,15 @@ source="http://pgfoundry.org/frs/download.php/1705/$pkgname-$_myver.tar.gz
[ "$ALPINE_LIBC" = "eglibc" ] && arch=
+_builddir="$srcdir/$pkgname-$_myver"
+
+prepare() {
+ cd "$_builddir"
+ update_config_sub || return 1
+}
+
build() {
- cd "$srcdir"/$pkgname-$_myver || return 1
+ cd "$_builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
@@ -32,7 +39,7 @@ build() {
}
package() {
- cd "$srcdir"/$pkgname-$_myver || return 1
+ cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
install -D -m755 "$srcdir"/$pkgname.initd \