# Maintainer: %MAINTAINER% %CONTRS% # # Generated by aur-fd-scripts - https://git.respiranto.de/aur-fd-scripts.git/ _lang=%LANG% _pkgname="dict-freedict-${_lang}" pkgname="${_pkgname}-svn" pkgver=%VER% _pkgver="${pkgver//_/-}" pkgrel=2 pkgdesc="%LANG_A% -> %LANG_B% dictionary for dictd et al. from FreeDict.org" arch=('any') url="https://freedict.org/" license=(%LICENSES%) optdepends=('dictd: dict client and server') makedepends=('subversion' 'freedict-tools') provides=("$_pkgname") conflicts=("$_pkgname") install="${pkgname}.install" source=("svn+https://github.com/freedict/fd-dictionaries/trunk/${_lang}") sha512sums=('SKIP') %PREPARE% pkgver() { cd "$_lang" local _ver="$(svnversion)" printf "r%s" "${_ver//[[:alpha:]]}" } 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 }