diff options
author | Einhard Leichtfuß | 2022-04-29 23:57:49 +0200 |
---|---|---|
committer | Einhard Leichtfuß | 2022-04-29 23:57:49 +0200 |
commit | 119171ea8ab1196e40d8855a6917937edfd2e836 (patch) | |
tree | c43925b80eec58a1420d0d5965358e80dbd2357b | |
parent | d23edf857d49caa07ffe6e8e2ded4d402b5955cb (diff) | |
download | aur-119171ea8ab1196e40d8855a6917937edfd2e836.tar.gz |
Update to version 2022.04.06
-rw-r--r-- | .SRCINFO | 11 | ||||
-rw-r--r-- | PKGBUILD | 27 | ||||
-rw-r--r-- | dict-freedict-fra-deu-bin.install | 30 |
3 files changed, 35 insertions, 33 deletions
@@ -1,6 +1,6 @@ pkgbase = dict-freedict-fra-deu-bin - pkgdesc = French -> German dictionary for dictd et al. from Freedict.org - pkgver = 2020.10.04 + pkgdesc = French -> German dictionary for dictd et al. from FreeDict.org + pkgver = 2022.04.06 pkgrel = 1 url = https://freedict.org/ install = dict-freedict-fra-deu-bin.install @@ -8,10 +8,9 @@ pkgbase = dict-freedict-fra-deu-bin license = CCPL:by-sa license = FDL optdepends = dictd: dict client and server - provides = dict-freedict-fra-deu + provides = dict-freedict-fra-deu=2022.04.06 conflicts = dict-freedict-fra-deu - source = https://download.freedict.org/dictionaries/fra-deu/2020.10.04/freedict-fra-deu-2020.10.04.dictd.tar.xz - sha512sums = a6c25cc589d9d65a270c73abbfc7c7efc0cbf6600075acc018a123a5a3c1a5e238f026a894552e399d66bb3ddea341205f30e00e1e9998fdb893fb4a4f66b47c + source = https://download.freedict.org/dictionaries/fra-deu/2022.04.06/freedict-fra-deu-2022.04.06.dictd.tar.xz + sha512sums = a4771647892f0759974056bd641c4e54d8b1d545c56a399a3777d4723ce298f4e6ee01ee2ea2beae9a466962e8792d0ea5ed1d0047f32db883b6c688fe15c647 pkgname = dict-freedict-fra-deu-bin - @@ -3,32 +3,33 @@ # Generated by aur-fd-scripts - https://git.respiranto.de/aur-fd-scripts.git/ _lang=fra-deu -_pkgname=dict-freedict-${_lang} -pkgname=${_pkgname}-bin -pkgver=2020.10.04 +_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" +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}) -conflicts=(${_pkgname}) -install=${pkgname}.install -source=("https://download.freedict.org/dictionaries/${_lang}/${pkgver}/freedict-${_lang}-${pkgver}.dictd.tar.xz") -sha512sums=('a6c25cc589d9d65a270c73abbfc7c7efc0cbf6600075acc018a123a5a3c1a5e238f026a894552e399d66bb3ddea341205f30e00e1e9998fdb893fb4a4f66b47c') +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} + "${_lang}/${_lang}".{dict.dz,index} - for file in ${_lang}/{AUTHORS,README,NEWS,ChangeLog} + for file in "$_lang"/{AUTHORS,README,NEWS,ChangeLog} do - if test -f ${file} + if test -f "$file" then - install -m 644 -Dt "${pkgdir}/usr/share/doc/freedict/${_lang}/" ${file} + install -m 644 -Dt "${pkgdir}/usr/share/doc/freedict/${_lang}/" "$file" fi done } diff --git a/dict-freedict-fra-deu-bin.install b/dict-freedict-fra-deu-bin.install index d17b1bddcdb9..b515a627f2f1 100644 --- a/dict-freedict-fra-deu-bin.install +++ b/dict-freedict-fra-deu-bin.install @@ -1,10 +1,12 @@ +# Generated by aur-fd-scripts - https://git.respiranto.de/aur-fd-scripts.git/ + basename=fra-deu -pkgname=dict-freedict-$basename-bin +pkgname="dict-freedict-${basename}-bin" dictd_conf=/etc/dict/dictd.conf datadir=/usr/share/dictd -conf="database $basename { - data $datadir/$basename.dict.dz - index $datadir/$basename.index +conf="database ${basename} { + data ${datadir}/${basename}.dict.dz + index ${datadir}/${basename}.index }" post_install() @@ -12,12 +14,12 @@ post_install() echo if pacman -Qq dictd > /dev/null 2>&1 then - if grep -q "^database *$basename" "$dictd_conf" + if grep -q "^database *${basename}" "${dictd_conf}" then - echo "$pkgname already configured in $dictd_conf" + echo "${pkgname} already configured in ${dictd_conf}" else - echo "Adding configuration for $pkgname to $dictd_conf" - echo "$conf" >> "$dictd_conf" + echo "Adding configuration for ${pkgname} to ${dictd_conf}" + echo "${conf}" >> "${dictd_conf}" fi if systemctl -q is-active dictd.service @@ -54,17 +56,17 @@ post_remove() { if pacman -Qq dictd > /dev/null 2>&1 then - current_conf="$(grep -A 3 "^database *$basename" "$dictd_conf")" - if test -n "$current_conf" + current_conf="$(grep -A 3 "^database *${basename}" "${dictd_conf}")" + if test -n "${current_conf}" then echo - if test "$current_conf" = "$conf" + if test "${current_conf}" = "${conf}" then - echo "Removing configuration for $pkgname from $dictd_conf" - sed -i "/database $basename {/,/}/d" "$dictd_conf" + echo "Removing configuration for ${pkgname} from ${dictd_conf}" + sed -i "/database ${basename} {/,/}/d" "${dictd_conf}" else echo "User created / modified configuration" \ - "for $pkgname in $dictd_conf is left untouched." + "for ${pkgname} in ${dictd_conf} is left untouched." fi fi |