File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ if [ -z " ${TEXMFCNF} " ]; then
2+ export TEXMFCNF=/usr/share/tex/texmf-context/web2c
3+ else
4+ export TEXMFCNF=/usr/share/tex/texmf-context/web2c:${TEXMFCNF}
5+ fi
Original file line number Diff line number Diff line change 1+ # Template file for 'ConTeXt'
2+ pkgname=ConTeXt
3+ version=2026.04.27
4+ revision=1
5+ depends="luametatex context-distribution-fonts"
6+ short_desc="Professional text editor"
7+ maintainer="orahcio <orahcio@gmail.com>"
8+ license="GPL-2.0-only"
9+ homepage="https://www.pragma-ade.nl/index.htm"
10+ distfiles="https://www.pragma-ade.nl/context/latest/cont-lmt.zip"
11+ checksum=86c18ebc41dd54e83f81d205ffab320850707c4773fee8e7e739167318d77dca
12+
13+ do_configure() {
14+ # ConTeXt resource paths to Void standard
15+ cp web2c/contextcnf.lua web2c/texmfcnf.lua
16+ sed -i \
17+ -e 's|selfautodir:|/usr/bin|' \
18+ -e 's|selfautoparent:|/usr/share/tex/|g' \
19+ -e 's|\$SELFAUTOPARENT/texmf-cache|home:.cache/context|g' \
20+ web2c/texmfcnf.lua
21+ }
22+
23+ do_install() {
24+ local texmf_dir="usr/share/tex/texmf-context"
25+ # ConTeXt resources
26+ vmkdir "${texmf_dir}"
27+ for dir in "colors" "context" \
28+ "fonts" "metapost" "scripts" \
29+ "tex" "web2c" "context-readme.txt"
30+ do
31+ vcopy $dir "${texmf_dir}"
32+ done
33+ # Binary files
34+ vbin scripts/context/lua/context.lua
35+ vbin scripts/context/lua/mtxrun.lua
36+ ln -s luametatex ${DESTDIR}/usr/bin/context
37+ ln -s luametatex ${DESTDIR}/usr/bin/mtxrun
38+ vinstall ${FILESDIR}/context.sh 644 etc/profile.d
39+ }
You can’t perform that action at this time.
0 commit comments