diff options
author | Valery Kartel <valery.kartel@gmail.com> | 2015-11-09 14:00:24 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2015-11-10 08:22:51 +0000 |
commit | 24a916e8811ca975e66476e9dfea0da6b37e8a27 (patch) | |
tree | 092e79d84529e282f8eda5b01a72a5dff2961643 /main/aspell/APKBUILD | |
parent | 570c811fa2c0f6e8b5761ab94e048c43e7389486 (diff) | |
download | aports-24a916e8811ca975e66476e9dfea0da6b37e8a27.tar.bz2 aports-24a916e8811ca975e66476e9dfea0da6b37e8a27.tar.xz |
main/aspell: /usr/lib/aspell symlink fix, some build fixes, some staff moved to subpackages
Diffstat (limited to 'main/aspell/APKBUILD')
-rw-r--r-- | main/aspell/APKBUILD | 47 |
1 files changed, 33 insertions, 14 deletions
diff --git a/main/aspell/APKBUILD b/main/aspell/APKBUILD index 436a3a1156..c4534ef8f1 100644 --- a/main/aspell/APKBUILD +++ b/main/aspell/APKBUILD @@ -1,13 +1,14 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> +# Contributor: Valery Kartel <valery.kartel@gmail.com> pkgname=aspell pkgver=0.60.6.1 -_pkgmajorver=${pkgver%.*} -pkgrel=3 +_pkgmajorver=0.60 +pkgrel=4 pkgdesc="A spell checker designed to eventually replace Ispell" url="http://aspell.net/" arch="all" license="LGPL2+" -subpackages="$pkgname-dev $pkgname-doc" +subpackages="$pkgname-compat $pkgname-utils $pkgname-dev $pkgname-doc" depends= makedepends="ncurses-dev perl" install= @@ -18,20 +19,16 @@ _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;; + esac + done } build() { cd "$_builddir" - ./configure \ - --build=$CBUILD \ - --host=$CHOST \ - --prefix=/usr \ - || return 1 - - # we want add -lm to linker flag for libaspell so wil build that - # separately. this is just an ugly workaround - make libaspell.la LDFLAGS="$LDFLAGS -lm" || return 1 + ./configure --prefix=/usr || return 1 make || return 1 } @@ -40,5 +37,27 @@ package() { make DESTDIR="$pkgdir" install || return 1 ln -s $pkgname-${_pkgmajorver} "$pkgdir"/usr/lib/$pkgname || return 1 } + +compat() { + pkgdesc="aspell compatibility scripts for ispell and unix spell" + arch="noarch" + install -d "$subpkgdir"/usr/bin + cd "$_builddir"/scripts + cp spell ispell "$subpkgdir"/usr/bin/ +} + +utils() { + pkgdesc="aspell misc utils" + depends="perl" + arch="all" + install -d "$subpkgdir"/usr/bin + cd "$pkgdir"/usr/bin + mv pre* aspell-import run-with-aspell word-list-compress "$subpkgdir"/usr/bin/ +} + md5sums="e66a9c9af6a60dc46134fdacf6ce97d7 aspell-0.60.6.1.tar.gz -715f4e138ab33b27201d90cbc98b4fb3 libmath.patch" +2b866e5365aca89510c8c84359007ba5 libmath.patch" +sha256sums="f52583a83a63633701c5f71db3dc40aab87b7f76b29723aeb27941eff42df6e1 aspell-0.60.6.1.tar.gz +a20ea65e3a88123db9e9cd89af71962472a548113c79860d28e74494d65cdad7 libmath.patch" +sha512sums="f310c7590be98406589b5c26ca36a2ecfe4733f0b40fd6c176b96b7955ef2b5cd0ec9a3d770cf132146ae7a896042b4b698945112995ee1ae66adcfa5542247f aspell-0.60.6.1.tar.gz +e390fc1004d59d895ae3cde198265fa769efa1ec729a00d2d8ceca63a4a10d93857a7fef9a1bb7c9434502630e3ae85f2bc2c207c7dffab78469eb344e2275ea libmath.patch" |