summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c0a258212f58e11fa142cc2458c05329eae5fa0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Maintainer: Einhard Leichtfuß <alguien@respiranto.de>
#
# Generated by aur-fd-scripts - https://git.respiranto.de/aur-fd-scripts.git/

_lang=fra-deu
_pkgname="dict-freedict-${_lang}"
pkgname="${_pkgname}-bin"
_pkgver=2022.04.06
pkgver="${_pkgver//-/_}"
pkgrel=1
pkgdesc="French -> German dictionary for dictd et al. from FreeDict.org"
arch=('any')
url="https://freedict.org/"
license=('CCPL:by-sa' 'FDL')
optdepends=('dictd: dict client and server')
provides=("${_pkgname}=${pkgver}")
conflicts=("$_pkgname")
install="${pkgname}.install"
source=("https://download.freedict.org/dictionaries/${_lang}/${_pkgver}/freedict-${_lang}-${_pkgver}.dictd.tar.xz")
sha512sums=('a4771647892f0759974056bd641c4e54d8b1d545c56a399a3777d4723ce298f4e6ee01ee2ea2beae9a466962e8792d0ea5ed1d0047f32db883b6c688fe15c647')

package()
{
	install -m 755 -d "${pkgdir}/usr/share/dictd"
	install -m 644 -t "${pkgdir}/usr/share/dictd/" \
		"${_lang}/${_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
}