testing/dspam: Moderning abuild

dspam APKBUILD applies the build manually instead of using the
default_prepare() helper. Also using the $builddir variable.
This commit is contained in:
Breno Leitao 2017-04-08 22:44:45 +00:00
parent eaa30e4715
commit 47800ee3b0

View File

@ -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