libreoffice-dictionaries: don't use alias

it causes xbps-src-make to panic when encountered
This commit is contained in:
classabbyamp 2024-07-14 13:22:59 -04:00 committed by Đoàn Trần Công Danh
parent 4770c1a6d7
commit d10f7e7846
1 changed files with 10 additions and 12 deletions

View File

@ -132,19 +132,17 @@ _build_bdic() {
}
_vbdic() {
vmkdir usr/share/hunspell-bdic
vinstall "bdic/$1.bdic" 0644 usr/share/hunspell-bdic
if [ "$build_option_bdic" ]; then
vmkdir usr/share/hunspell-bdic
vinstall "bdic/$1.bdic" 0644 usr/share/hunspell-bdic
fi
}
_vbdiclink() {
ln -sf "$1.bdic" "${PKGDESTDIR}/usr/share/hunspell-bdic/$2.bdic"
if [ "$build_option_bdic" ]; then
ln -sf "$1.bdic" "${PKGDESTDIR}/usr/share/hunspell-bdic/$2.bdic"
fi
}
if [ "$build_option_bdic" ]; then
alias vbdic=_vbdic
alias vbdiclink=_vbdiclink
else
alias vbdic=":"
alias vbdiclink=":"
fi
_vhunspell() {
local subdir lang lnk
@ -160,11 +158,11 @@ _vhunspell() {
usr/share/hunspell "$lang.aff"
vinstall "dictionaries/$subdir/$lang.dic" 0644 \
usr/share/hunspell "$lang.dic"
vbdic "$lang"
_vbdic "$lang"
for lnk; do
ln -sf "$lang.aff" "${PKGDESTDIR}/usr/share/hunspell/$lnk.aff"
ln -sf "$lang.dic" "${PKGDESTDIR}/usr/share/hunspell/$lnk.dic"
vbdiclink "$lang" "$lnk"
_vbdiclink "$lang" "$lnk"
done
}