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

_lang=de
_realname=aspell-${_lang}
pkgbase=mingw-w64-${_realname}
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
pkgver=20161207
_subpkgver=7-0
pkgrel=3
_pkgname=aspell6-${_lang}-${pkgver}-${_subpkgver}
pkgdesc="German dictionary for aspell (mingw-w64)"
arch=('any')
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clangarm64')
url="http://aspell.net/"
license=('custom')
depends=("${MINGW_PACKAGE_PREFIX}-aspell")
makedepends=("${MINGW_PACKAGE_PREFIX}-autotools")
source=("https://ftp.gnu.org/gnu/aspell/dict/${_lang}/${_pkgname}.tar.bz2"
        001-unixy-dirs.patch)
sha256sums=('c2125d1fafb1d4effbe6c88d4e9127db59da9ed92639c7cbaeae1b7337655571'
            'e96902930299fc65275fc14d8dde1d02378875382c7275bd2067cc49666f60cc')

prepare() {
  cd "${srcdir}/${_pkgname}"
  patch -p1 -i ../001-unixy-dirs.patch
}

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

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