Antonio Rojas pushed to branch main at Arch Linux / Packaging / Packages / 
texlive-texmf


Commits:
842eee9a by Antonio Rojas at 2023-08-02T20:29:55+02:00
Install zsh completion for texdoc (FS#79068)

- - - - -


1 changed file:

- PKGBUILD


Changes:

=====================================
PKGBUILD
=====================================
@@ -53,7 +53,7 @@ prepare() {
   patch -d texmf-dist/web2c -p0 < texmfcnf.lua.patch
 
 # Copy files where format and maps will be extracted from
-  cp texmf-dist/web2c/{fmtutil.cnf,updmap.cfg} .
+  cp texmf-dist/web2c/{fmtutil.cnf,updmap.cfg,texmf.cnf} .
   cp texmf-dist/tex/generic/config/language.{dat,dat.lua,def} .
   
 # Split files per package
@@ -230,6 +230,10 @@ _package() {
     backup=(etc/texmf/chktex/chktexrc)
   # copy config files to $TEXMFCONFIG tree
     install -Dm644 "$pkgdir"/usr/share/texmf-dist/chktex/chktexrc -t 
"$pkgdir"/etc/texmf/chktex/
+  # install zsh completions
+    mkdir -p "$pkgdir"/usr/share/zsh/site-functions
+    TEXMFCNF="$srcdir" \
+    "$pkgdir"/usr/bin/texdoc --print-completion zsh > 
"$pkgdir"/usr/share/zsh/site-functions/_texdoc 2>/dev/null
   fi
 
   if [[ $1 == fontutils ]]; then



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/texlive-texmf/-/commit/842eee9a5be60f5bc2c7c290ddffb36da5a8db0c

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/texlive-texmf/-/commit/842eee9a5be60f5bc2c7c290ddffb36da5a8db0c
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to