From ff0d8959b24ce0dd02c1f6685c54fe1c63afff98 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Tue, 10 Nov 2015 08:17:36 +0000 Subject: main/aspell: build fix and cleanup --- main/aspell/APKBUILD | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/main/aspell/APKBUILD b/main/aspell/APKBUILD index c4534ef8f1..52a5d2075b 100644 --- a/main/aspell/APKBUILD +++ b/main/aspell/APKBUILD @@ -2,7 +2,12 @@ # Contributor: Valery Kartel pkgname=aspell pkgver=0.60.6.1 -_pkgmajorver=0.60 +case $pkgver in +*.*.*.*) _pkgmajorver=${pkgver%.*.*};; +*.*.*) _pkgmajorver=${pkgver%.*};; +*) _pkgmajorver=$pkgver;; +esac + pkgrel=4 pkgdesc="A spell checker designed to eventually replace Ispell" url="http://aspell.net/" @@ -19,6 +24,7 @@ _builddir="$srcdir/$pkgname-$pkgver" prepare() { cd "$_builddir" + update_config_sub || return 1 for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; @@ -26,9 +32,13 @@ prepare() { done } -build() { +build() { cd "$_builddir" - ./configure --prefix=/usr || return 1 + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + || return 1 make || return 1 } -- cgit v1.2.3