_lang=de
_realname=aspell-${_lang}
pkgname=${_realname}
_pkgver=20161207-7-0
pkgver=${_pkgver//-/.}
pkgrel=1
_pkgname=aspell6-${_lang}-${_pkgver}
pkgdesc='German dictionary for aspell'
arch=('i686' 'x86_64')
url="http://aspell.net/"
license=('GPL-2+')
depends=('aspell')
makedepends=('autotools')
source=("https://ftp.gnu.org/gnu/aspell/dict/${_lang}/${_pkgname}.tar.bz2")
sha256sums=('c2125d1fafb1d4effbe6c88d4e9127db59da9ed92639c7cbaeae1b7337655571')

prepare() {
  cd "${srcdir}/${_pkgname}"
}

build() {
  cd "${srcdir}/${_pkgname}"
  ./configure
  make
}

package() {
  cd "${srcdir}/${_pkgname}"
  make install DESTDIR="${pkgdir}"

  install -vDm444 -t "${pkgdir}/usr/share/licenses/${pkgname}" COPYRIGHT
}
