Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Alexander Baldeck
committed
Feb 24, 2019
1 parent
7002aa6
commit 8d4d9ab
Showing
1 changed file
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com> | ||
# Maintainer: Andreas Radke <andyrtr@archlinux.org> | ||
# Contributor: Hussam Al-Tayeb <ht990332@gmail.com> | ||
pkgname=hunspell | ||
pkgver=1.7.0 | ||
pkgrel=2 | ||
pkgdesc="Spell checker and morphological analyzer library and program" | ||
arch=('x86_64' 'powerpc64le') | ||
url="https://hunspell.github.io/" | ||
license=('GPL' 'LGPL' 'MPL') | ||
depends=('gcc-libs' 'readline') | ||
optdepends=('perl: for ispellaff2myspell') | ||
source=($pkgname-$pkgver.tar.gz::https://github.com/hunspell/hunspell/archive/v${pkgver}.tar.gz) | ||
sha256sums=('bb27b86eb910a8285407cf3ca33b62643a02798cf2eef468c0a74f6c3ee6bc8a') | ||
|
||
prepare() { | ||
cd hunspell-$pkgver | ||
autoreconf -vfi | ||
} | ||
|
||
build() { | ||
cd hunspell-$pkgver | ||
./configure --prefix=/usr --disable-static \ | ||
--with-ui --with-readline # --with-experimental breaks build in this release | ||
make | ||
} | ||
|
||
check() { | ||
cd hunspell-$pkgver | ||
make check | ||
} | ||
|
||
package() { | ||
cd hunspell-$pkgver | ||
make DESTDIR="$pkgdir" install | ||
|
||
# add generic hunspell.so for development and projects not using pkgconfig flags - FS#30592 | ||
pushd $pkgdir/usr/lib | ||
ln -s libhunspell-?.?.so libhunspell.so | ||
popd | ||
} |