diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2015-11-10 08:17:36 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2015-11-10 08:22:51 +0000 |
commit | ff0d8959b24ce0dd02c1f6685c54fe1c63afff98 (patch) | |
tree | 143d0de5efa18ffe85da0168ef241fef306adbee | |
parent | 24a916e8811ca975e66476e9dfea0da6b37e8a27 (diff) | |
download | aports-ff0d8959b24ce0dd02c1f6685c54fe1c63afff98.tar.bz2 aports-ff0d8959b24ce0dd02c1f6685c54fe1c63afff98.tar.xz |
main/aspell: build fix and cleanup
-rw-r--r-- | main/aspell/APKBUILD | 16 |
1 files 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 <valery.kartel@gmail.com> 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 } |