# Maintainer: Alexey Pavlov <alexpux@gmail.com>

pkgbase=aspell-en
pkgname=aspell6-en
pkgver=2018.04.16
_pkg_subver=0
pkgrel=1
pkgdesc="Aspell English dictionaries"
arch=('i686' 'x86_64')
url="https://ftp.gnu.org/gnu/aspell/dict/0index.html"
license=('custom')
groups=()
makedepends=('aspell-devel')
depends=('aspell>=0.60')
provides=('aspell-en')
options=()
source=("https://ftp.gnu.org/gnu/aspell/dict/en/${pkgname}-${pkgver}-${_pkg_subver}.tar.bz2"{,.sig})
sha256sums=('f11071e74b0c0753f4afabf024941a5c3a96bafe3879211ebd47bc34e76fbd2f'
            'SKIP')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}-${_pkg_subver}"
  ./configure
  make
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}-${_pkg_subver}"
  make DESTDIR="${pkgdir}/" install

  install -Dm644 Copyright ${pkgdir}/usr/share/licenses/aspell-en/Copyright
}
