From ff1f095d7f1e0dbe55852883f04263b946ab5d23 Mon Sep 17 00:00:00 2001 From: Carlo Landmeter Date: Sun, 14 Aug 2016 00:42:06 +0000 Subject: main/slony1: build fix --- main/slony1/APKBUILD | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) (limited to 'main/slony1/APKBUILD') diff --git a/main/slony1/APKBUILD b/main/slony1/APKBUILD index 914058090d..ee14a82f21 100644 --- a/main/slony1/APKBUILD +++ b/main/slony1/APKBUILD @@ -18,30 +18,27 @@ source="http://main.slony.info/downloads/${pkgver%.*}/source/slony1-$pkgver.tar. default-config.patch " -_builddir="$srcdir"/slony1-$pkgver +builddir="$srcdir"/slony1-$pkgver + prepare() { - local i - cd "$_builddir" - for i in $source; do - case $i in - *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; - esac - done + default_prepare || return 1 + update_config_guess || return 1 } build() { - cd "$_builddir" + cd "$builddir" ./configure --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --localstatedir=/var \ + --with-pgpkglibdir=/usr/lib/postgresql \ || return 1 make || return 1 } package() { - cd "$_builddir" + cd "$builddir" make DESTDIR="$pkgdir" install || return 1 install -Dm644 share/slon.conf-sample "$pkgdir"/etc/slon.conf \ || return 1 -- cgit v1.2.3