# Maintainer: Einhard Leichtfuß %CONTRS% _lang=%LANG% pkgname=dict-freedict-${_lang} pkgver=%VER% _pkgver=${pkgver//_/-} pkgrel=1 pkgdesc="%LANG_A% -> %LANG_B% dictionary for dictd et al. from Freedict.org" arch=('any') url="http://www.freedict.org/" license=('GPL') optdepends=('dictd: dict client and server') makedepends=('dictd' 'freedict-tools') install=${pkgname}.install source=("https://download.freedict.org/dictionaries/${_lang}/${_pkgver}/freedict-${_lang}-${_pkgver}.src.tar.xz") sha512sums=('%CHECKSUM%') %PREPARE% build() { cd $_lang make FREEDICT_TOOLS=/usr/lib/freedict-tools build-dictd } package() { install -m 755 -d "${pkgdir}/usr/share/dictd" install -m 644 -t "${pkgdir}/usr/share/dictd/" \ ${_lang}/build/dictd/${_lang}.{dict.dz,index} for file in ${_lang}/{AUTHORS,README,NEWS,ChangeLog} do if test -f ${file} then install -m 644 -Dt "${pkgdir}/usr/share/doc/freedict/${_lang}/" ${file} fi done }