From 47800ee3b0230ca59d1ef361bacde4d062cdf1ed Mon Sep 17 00:00:00 2001 From: Breno Leitao Date: Sat, 8 Apr 2017 22:44:45 +0000 Subject: testing/dspam: Moderning abuild dspam APKBUILD applies the build manually instead of using the default_prepare() helper. Also using the $builddir variable. --- testing/dspam/APKBUILD | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'testing/dspam/APKBUILD') diff --git a/testing/dspam/APKBUILD b/testing/dspam/APKBUILD index 3b6f164232..f7774fb8fb 100644 --- a/testing/dspam/APKBUILD +++ b/testing/dspam/APKBUILD @@ -23,19 +23,17 @@ source="http://downloads.sourceforge.net/$pkgname/$pkgname-$_ver.tar.gz musl-fixes.patch" +builddir="$srcdir/$pkgname-$_ver" + prepare() { - cd "$srcdir"/$pkgname-$_ver - for i in "$srcdir"/*.patch; do - [ -f "$i" ] || continue - msg "Applying $i" - patch -p1 -i "$i" || return 1 - done + cd "$builddir" update_config_guess || return 1 + default_prepare || return 1 #aclocal -I m4 && libtoolize && autoconf && automake } build() { - cd "$srcdir"/$pkgname-$_ver + cd "$builddir" ./autogen.sh || return 1 ./configure --prefix=/usr \ --sysconfdir=/etc/dspam \ @@ -50,7 +48,7 @@ build() { } package() { - cd "$srcdir"/$pkgname-$_ver + cd "$builddir" make install DESTDIR="$pkgdir" install -Dm755 "$srcdir"/dspam.initd "$pkgdir"/etc/init.d/dspam install -Dm644 "$srcdir"/dspam.logrotate "$pkgdir"/etc/logrotate.d/dspam -- cgit v1.2.3