From 044f02c37b8430e180310e741256ee44eac3d410 Mon Sep 17 00:00:00 2001
From: Britney Fransen <brfransen@gmail.com>
Date: Sat, 14 Apr 2018 18:14:18 +0000
Subject: hunspell: update to 1.6.2

---
 abs/extra/hunspell/PKGBUILD | 26 ++++++++++++++++++--------
 1 file changed, 18 insertions(+), 8 deletions(-)

diff --git a/abs/extra/hunspell/PKGBUILD b/abs/extra/hunspell/PKGBUILD
index 89f9c87..2b08c38 100644
--- a/abs/extra/hunspell/PKGBUILD
+++ b/abs/extra/hunspell/PKGBUILD
@@ -3,26 +3,36 @@
 # Contributor: Hussam Al-Tayeb <ht990332@gmail.com>
 
 pkgname=hunspell
-pkgver=1.3.3
+pkgver=1.6.2
 pkgrel=1
 pkgdesc="Spell checker and morphological analyzer library and program"
-arch=('i686' 'x86_64')
-url="http://hunspell.sourceforge.net/"
+arch=('x86_64')
+url="https://hunspell.github.io/"
 license=('GPL' 'LGPL' 'MPL')
 depends=('gcc-libs' 'readline')
 optdepends=('perl: for ispellaff2myspell')
-source=(http://downloads.sourceforge.net/hunspell/hunspell-$pkgver.tar.gz)
-md5sums=('4967da60b23413604c9e563beacc63b4')
+source=($pkgname-$pkgver.tar.gz::https://github.com/hunspell/hunspell/archive/v${pkgver}.tar.gz)
+sha256sums=('3cd9ceb062fe5814f668e4f22b2fa6e3ba0b339b921739541ce180cac4d6f4c4')
+
+prepare() {
+  cd hunspell-$pkgver
+  autoreconf -vfi
+}
 
 build() {
-  cd "$srcdir/hunspell-$pkgver"
+  cd hunspell-$pkgver
   ./configure --prefix=/usr --disable-static \
-	--with-ui --with-readline --with-experimental
+	--with-ui --with-readline # --with-experimental breaks build in this release
   make
 }
 
+check() {
+  cd hunspell-$pkgver
+  make check
+}
+
 package() {
-  cd "$srcdir/hunspell-$pkgver"
+  cd hunspell-$pkgver
   make DESTDIR="$pkgdir" install
   
   # add generic hunspell.so for development and projects not using pkgconfig flags - FS#30592
-- 
cgit v0.12

