PKGBUILD 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465
  1. # Maintainer (arch): Rémy Oudompheng <remy@archlinux.org>
  2. # Contributor: André Silva <emulatorman@hyperbola.info>
  3. # Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
  4. # Contributor: Michał Masłowski <mtjm@mtjm.eu>
  5. # Contributor: Isaac David <isacdaavid@at@isacdaavid@dot@info>
  6. # Contributor: bill-auger <bill-auger@programmer.net>
  7. # Maintainer: Parabola Hackers <dev@lists.parabola.nu>
  8. # parabola changes and rationale:
  9. # - remove non-free add-on packages
  10. # - pin to strongly-coupled dependency versions
  11. _pkgname=texlive-core-libre
  12. pkgname=texlive-core
  13. pkgver=2023.66587
  14. _revnr=${pkgver#2023.}
  15. pkgrel=2
  16. pkgrel+=.par2
  17. pkgdesc="TeX Live core distribution"
  18. license=('GPL')
  19. arch=(any)
  20. depends=('texlive-bin' 'perl')
  21. depends+=('luametatex')
  22. makedepends=('subversion')
  23. optdepends=(
  24. 'dialog: for texconfig'
  25. 'ghostscript: for epstopdf, epspdf and other ConTeXt tools'
  26. 'java-runtime: for utilities like arara, texplate'
  27. 'perl-tk: for texdoctk'
  28. 'psutils: to manipulate the output of dvips'
  29. 'python: for de-macro, dviasm, pythontex'
  30. 'ruby: for old ConTeXT MkII and epspdf'
  31. 't1utils: can be useful when installing Type1 fonts'
  32. 'wdiff: for texdiff'
  33. )
  34. groups=('texlive-most')
  35. conflicts=('tetex' 'texlive-latex3' 'pdfjam'
  36. 'texlive-genericextra'
  37. 'texlive-plainextra')
  38. provides=('tetex' 'texlive-latex3' 'pdfjam'
  39. 'texlive-genericextra'
  40. 'texlive-plainextra')
  41. replaces=('tetex' 'texlive-latex3' 'pdfjam'
  42. 'texlive-genericextra'
  43. 'texlive-plainextra')
  44. url='http://tug.org/texlive/'
  45. mksource=("https://sources.archlinux.org/other/texlive/$pkgname-$pkgver-src.zip")
  46. mksha256sums=('2cdaf356d89351e61152243f1192a5e000a9586c67b873737f01878a3e5724ff')
  47. noextract=("$pkgname-$pkgver-src.zip")
  48. source=("https://repo.parabola.nu/other/$_pkgname/$_pkgname-$pkgver-src.tar.xz"{,.sig}
  49. "$pkgname.maps"
  50. "$pkgname.fmts"
  51. "texlive-man::svn://tug.org/texlive/tags/texlive-2023.0/Master/texmf-dist/doc/man#revision=${_revnr}"
  52. "mktexlsr.hook"
  53. "mktexlsr.script"
  54. "texlive-updmap.hook"
  55. "texlive-updmap.script"
  56. "texlive-fmtutil.hook"
  57. "texlive-fmtutil.script"
  58. "texmf.cnf"
  59. "texmfcnf.lua"
  60. "09-texlive-fonts.conf")
  61. install=texlive.install
  62. backup=(etc/texmf/web2c/texmf.cnf \
  63. etc/texmf/chktex/chktexrc \
  64. etc/texmf/dvipdfmx/dvipdfmx.cfg \
  65. etc/texmf/dvips/config/config.ps \
  66. etc/texmf/tex/generic/config/language.dat \
  67. etc/texmf/tex/generic/config/language.def \
  68. etc/texmf/tex/generic/tex-ini-files/pdftexconfig.tex \
  69. etc/texmf/ttf2pk/ttf2pk.cfg \
  70. etc/texmf/web2c/fmtutil.cnf \
  71. etc/texmf/web2c/mktex.cnf \
  72. etc/texmf/xdvi/XDvi)
  73. sha256sums=('ec1b572a3fd372410bf3465eb7687889072213976213c67a7f11f1ee5f22917c'
  74. 'SKIP'
  75. 'bbed1c20c91daca967e344505b9dd4e502569365709ce6b87be5510c2ebb98ef'
  76. '7da46b34158b7fd997e494adaffdc5778617706680ba8124343d9973c2b1e965'
  77. 'SKIP'
  78. 'c76f01fe2a42e5860f7d0b2f16a4fc09101e1a14ea7488985e914cda749f1a21'
  79. '05afeae62a5d4c9de79c838c9636e2aefe9ad1d6b787fed4e5930c13baf60eba'
  80. '2141c0842668fb937fd21ca2fae39b642c9665656e404a0d4ee7bdc477bf51fe'
  81. 'ee6e76192a5ad880a2152cd7900b86c8465239fb228045a2f8360b0d7a449f4a'
  82. 'b641550fe7727422b6964d505db7dbc35b3680a9d47b8d97ac550828bdb9bac7'
  83. 'f96e9f815fa0a4b85e677f2a9215d9106b8abe46eceb3f3e36a6c76eda3e4a85'
  84. '387c123ab6efe9c51ab7eeb9c20a0cbe6c3b94887d717ca3da2e15b66dc963f8'
  85. '0b6c3ee516608ce04d7133db52cadfa1be5d885b3f82bb39dc5897b213847e0d'
  86. '5e79c40cf3ab93348fc89e97890198601767ea2c8fea89ea76088c17a2b35962')
  87. validpgpkeys=('1B8C5E87702444D3D825CC8086ED62396D5DBA58' # Omar Vega Ramos
  88. '38D33EF29A7691134357648733466E12EC7BA943' # Isaac David
  89. '3954A7AB837D0EA9CFA9798925DB7D9B5A8D4B40' # bill-auger
  90. 'BFA8008A8265677063B11BF47171986E4B745536') # Andreas Grapentin
  91. _version_constraint() # (dep_pkgname [precision])
  92. {
  93. Log() { [[ "${FUNCNAME[2]}" == package ]] && echo "$@" >&2 || : ; }
  94. local dep_pkgname=$1
  95. declare -i req_precision=$2
  96. local full_version=$(pacman -S --print-format='%v' ${dep_pkgname} 2> /dev/null | tail -n 1)
  97. local n_dots=$(tmp=${full_version%-*} ; tmp=${tmp//[^\.]} ; echo "${#tmp}" ;)
  98. local def_precision=$(( n_dots + 1 ))
  99. local is_prec_valid=$(( req_precision > 0 && req_precision <= def_precision ))
  100. local precision=$((( is_prec_valid )) && echo ${req_precision} || echo ${def_precision})
  101. local epoch_rx='[0-9]+:'
  102. local pkgver_rx='[0-9A-Za-z_]+'
  103. pkgver_rx=$(sed 's|\]|\+]|' <<<${pkgver_rx}) # according to the wiki, '+' is not allowed,
  104. # but some pkgver have it (eg: 5.15.10+kde+r130)
  105. local subver_rx='\.'${pkgver_rx}
  106. local pkgrel_rx='[0-9]+'
  107. local garbage_rx='[^0-9].*'
  108. local capture_rx=${pkgver_rx}
  109. for (( n_dots=1 ; n_dots < precision ; ++n_dots )) ; do capture_rx+=${subver_rx} ; done ;
  110. local epoch version pkgrel has_dot_char version_min version_max constraint_string
  111. declare -i subver subver_inc pkgrel_inc
  112. if [[ "${full_version}" =~ ^(${epoch_rx})*(${capture_rx})(${subver_rx})*-(${pkgrel_rx}).*$ ]]
  113. then epoch=${BASH_REMATCH[1]} # optional epoch
  114. version=${BASH_REMATCH[2]} # pkgver cut to the requested precision
  115. #unused=${BASH_REMATCH[3]} # discarded pkgver segments
  116. pkgrel=${BASH_REMATCH[4]} # pkgrel with non-numerics right-trimmed
  117. has_dot_char=$([[ "${version}" =~ \. ]] ; echo $(( ! $? )) ; )
  118. subver=$(sed "s|${garbage_rx}||" <<<${version##*.}) # right-trim from any non-numeric
  119. version=$( (( has_dot_char )) && echo ${version%.*}.${subver} || echo ${subver} )
  120. version=${epoch}${version}
  121. subver_inc=$(( subver + 1 ))
  122. pkgrel_inc=$(( pkgrel + 1 ))
  123. version_min=$( (( ! is_prec_valid )) && echo ${full_version%-*}-${pkgrel} || \
  124. echo ${version} )
  125. version_max=$( ( (( ! is_prec_valid )) && echo ${full_version%-*}-${pkgrel_inc} ) || \
  126. ( [[ "${version}" =~ \. ]] && echo ${version%.*}.${subver_inc} ) || \
  127. echo ${subver_inc} )
  128. constraint_string="${dep_pkgname}>=${version_min} ${dep_pkgname}<${version_max}"
  129. Log "Applied version constraint: '${constraint_string}'"
  130. else Log "ERROR: in _version_constraint() parsing: dep_pkgname='${dep_pkgname}' full_version='${full_version}'"
  131. exit 1
  132. fi
  133. unset -f Log
  134. echo -n "${constraint_string}"
  135. }
  136. mksource() {
  137. mkdir $pkgname-$pkgver
  138. pushd $pkgname-$pkgver
  139. bsdtar xfv ../$pkgname-$pkgver-src.zip
  140. # remove nonfree packages
  141. # MeX licensed packages
  142. rm -v {cc-pl,cs,mex,pl}.tar.xz
  143. # public domain, will be relicensed
  144. rm -v context-{account,algorithmic,letter,ruby}.tar.xz
  145. # no specific free license
  146. rm -v euro-ce.tar.xz
  147. popd
  148. }
  149. prepare() {
  150. cd "$srcdir/$pkgname-$pkgver"
  151. echo -n " --> extracting all packages... "
  152. for p in *.tar.xz; do
  153. bsdtar -xf $p
  154. done
  155. echo "done"
  156. rm -rf source doc
  157. # remove nonfree packages references from updmap.cfg
  158. sed -i '/ccpl.map/d' texmf-dist/web2c/updmap.cfg
  159. sed -i '/cs-charter.map/d' texmf-dist/web2c/updmap.cfg
  160. sed -i '/csfonts.map/d' texmf-dist/web2c/updmap.cfg
  161. sed -i '/plother.map/d' texmf-dist/web2c/updmap.cfg
  162. sed -i '/pltext.map/d' texmf-dist/web2c/updmap.cfg
  163. # remove nonfree packages references from texlive-core.maps
  164. sed -i '/ccpl.map/d' $srcdir/$pkgname.maps
  165. sed -i '/cs-charter.map/d' $srcdir/$pkgname.maps
  166. sed -i '/csfonts.map/d' $srcdir/$pkgname.maps
  167. sed -i '/plother.map/d' $srcdir/$pkgname.maps
  168. sed -i '/pltext.map/d' $srcdir/$pkgname.maps
  169. # remove nonfree packages references from fmtutil.cnf
  170. sed -i '/cslatex/d' texmf-dist/web2c/fmtutil.cnf
  171. sed -i '/csplain/d' texmf-dist/web2c/fmtutil.cnf
  172. sed -i '/from mex/d' texmf-dist/web2c/fmtutil.cnf
  173. sed -i '/mexconf.tex/d' texmf-dist/web2c/fmtutil.cnf
  174. # remove nonfree packages references from package list
  175. sed -ri '/^(cc-pl|cs|mex|pl|context-(account|algorithmic|fixme|games|letter|ruby)|euro-ce) /d' CONTENTS
  176. }
  177. package() {
  178. # pin to strongly-coupled dependency versions
  179. # NOTE: This could probably be a sodep 'libz.so';
  180. # but this PKGBUILD is deprecated; and should be deleted soon.
  181. # All of the texlive PKGBUILDs need a total over-haul
  182. # for the current upstream release.
  183. depends+=( $(_version_constraint zlib 3) )
  184. cd "$srcdir/$pkgname-$pkgver"
  185. # Install packages.
  186. install -m755 -d "$pkgdir"/var/lib/texmf/arch/installedpkgs
  187. sed -i '/^#/d' CONTENTS
  188. install -m644 CONTENTS "$pkgdir"/var/lib/texmf/arch/installedpkgs/${pkgname}_${_revnr}.pkgs
  189. install -m644 "$srcdir"/$pkgname.maps "$pkgdir"/var/lib/texmf/arch/installedpkgs/
  190. install -m644 "$srcdir"/$pkgname.fmts "$pkgdir"/var/lib/texmf/arch/installedpkgs/
  191. install -m755 -d "$pkgdir"/usr/share
  192. wanteddirs=$(for d in *; do test -d $d && [[ $d != texmf* ]] && [[ $d != texlive-man ]] && echo $d; done) || true
  193. for dir in $wanteddirs; do
  194. find $dir -type d -exec install -d -m755 "$pkgdir"/usr/share/texmf-dist/'{}' \;
  195. find $dir -type f -exec install -m644 '{}' "$pkgdir"/usr/share/texmf-dist/'{}' \;
  196. done
  197. find texmf-dist -type d -exec install -d -m755 "$pkgdir"/usr/share/'{}' \;
  198. find texmf-dist -type f -exec install -m644 '{}' "$pkgdir"/usr/share/'{}' \;
  199. find texmf-dist -type f -executable -exec chmod 755 "$pkgdir"/usr/share/'{}' \;
  200. #############################################################
  201. ### install texmf tree
  202. echo "--> installing the /etc/texmf tree"
  203. install -d -m755 "$pkgdir"/etc/texmf/web2c
  204. install -d -m755 "$pkgdir"/etc/texmf/chktex
  205. install -d -m755 "$pkgdir"/etc/texmf/dvips/config
  206. install -d -m755 "$pkgdir"/etc/texmf/dvipdfmx
  207. install -d -m755 "$pkgdir"/etc/texmf/tex/generic/config
  208. install -d -m755 "$pkgdir"/etc/texmf/tex/generic/tex-ini-files
  209. install -d -m755 "$pkgdir"/etc/texmf/ttf2pk
  210. install -d -m755 "$pkgdir"/etc/texmf/xdvi
  211. install -d -m755 "$pkgdir"/usr/share/fontconfig/conf.avail
  212. install -m644 "$srcdir"/09-texlive-fonts.conf \
  213. "$pkgdir"/usr/share/fontconfig/conf.avail/
  214. # Remove manpages (already in texlive-bin).
  215. rm -rf "$pkgdir"/usr/share/texmf-dist/doc/man
  216. # copy config files to $TEXMFCONFIG tree
  217. cp -a "$pkgdir"/usr/share/texmf-dist/chktex/chktexrc \
  218. "$pkgdir"/etc/texmf/chktex/
  219. cp -a "$pkgdir"/usr/share/texmf-dist/web2c/mktex.cnf \
  220. "$pkgdir"/etc/texmf/web2c/
  221. cp -a "$pkgdir"/usr/share/texmf-dist/web2c/updmap-hdr.cfg \
  222. "$pkgdir"/etc/texmf/web2c/
  223. cp -a "$pkgdir"/usr/share/texmf-dist/web2c/fmtutil-hdr.cnf \
  224. "$pkgdir"/etc/texmf/web2c/fmtutil.cnf
  225. cp -a "$pkgdir"/usr/share/texmf-dist/dvips/config/config.ps \
  226. "$pkgdir"/etc/texmf/dvips/config/
  227. cp -a "$pkgdir"/usr/share/texmf-dist/dvipdfmx/dvipdfmx.cfg \
  228. "$pkgdir"/etc/texmf/dvipdfmx/
  229. cp -a "$pkgdir"/usr/share/texmf-dist/tex/generic/tex-ini-files/pdftexconfig.tex \
  230. "$pkgdir"/etc/texmf/tex/generic/tex-ini-files/
  231. cp -a "$pkgdir"/usr/share/texmf-dist/tex/generic/config/language.dat \
  232. "$pkgdir"/etc/texmf/tex/generic/config/
  233. cp -a "$pkgdir"/usr/share/texmf-dist/tex/generic/config/language.def \
  234. "$pkgdir"/etc/texmf/tex/generic/config/
  235. cp -a "$pkgdir"/usr/share/texmf-dist/ttf2pk/ttf2pk.cfg \
  236. "$pkgdir"/etc/texmf/ttf2pk/
  237. cp -a "$pkgdir"/usr/share/texmf-dist/xdvi/XDvi \
  238. "$pkgdir"/etc/texmf/xdvi/
  239. # remove TL specific warnings in the language.{dat,def} files:
  240. sed -i -e '/DO NOT EDIT/,+3 d' "$pkgdir"/etc/texmf/tex/generic/config/language.*
  241. # replace upstream texmf.cnf with ours
  242. rm -f "$pkgdir"/usr/share/texmf-dist/web2c/texmf.cnf
  243. install -m644 "$srcdir"/texmf.cnf "$pkgdir"/etc/texmf/web2c/texmf.cnf
  244. # since the location of texmf.cnf is hard-wired to be under /usr/share/texmf/web2c
  245. # we make a symlink from /etc/texmf/web2c/texmf.cnf to the latter
  246. ln -sf /etc/texmf/web2c/texmf.cnf "$pkgdir"/usr/share/texmf-dist/web2c/texmf.cnf
  247. # replace upstream texmfcnf.lua with ours
  248. install -m644 "$srcdir"/texmfcnf.lua "$pkgdir"/usr/share/texmf-dist/web2c/texmfcnf.lua
  249. # install Perl libraries
  250. mv "$pkgdir"/usr/share/texmf-dist/tlpkg "$pkgdir"/usr/share
  251. rm -rf "$pkgdir"/usr/share/tlpkg/tlpobj
  252. ## install pacman hooks
  253. install -D -m644 ${srcdir}/mktexlsr.hook "$pkgdir/usr/share/libalpm/hooks/mktexlsr.hook"
  254. install -D -m644 ${srcdir}/texlive-updmap.hook "$pkgdir/usr/share/libalpm/hooks/texlive-updmap.hook"
  255. install -D -m644 ${srcdir}/texlive-fmtutil.hook "$pkgdir/usr/share/libalpm/hooks/texlive-fmtutil.hook"
  256. install -D -m755 ${srcdir}/mktexlsr.script "$pkgdir/usr/share/libalpm/scripts/mktexlsr"
  257. install -D -m755 ${srcdir}/texlive-updmap.script "$pkgdir/usr/share/libalpm/scripts/texlive-updmap"
  258. install -D -m755 ${srcdir}/texlive-fmtutil.script "$pkgdir/usr/share/libalpm/scripts/texlive-fmtutil"
  259. # remove upstream updmap.cfg: it contains too many maps.
  260. rm "${pkgdir}/usr/share/texmf-dist/web2c/updmap.cfg"
  261. # remove upstream fmtutil.cnf: it will be autogenerated
  262. rm "${pkgdir}/usr/share/texmf-dist/web2c/fmtutil.cnf"
  263. # more cleanup
  264. rm -rf "$pkgdir/usr/share/texmf-dist/scripts/context/stubs/mswin/"
  265. # link programs from /usr/share/texmf-dist/scripts
  266. # texaccents is a SNOBOL program and will not be linked
  267. _linked_scripts="
  268. a2ping/a2ping.pl
  269. accfonts/mkt1font
  270. accfonts/vpl2ovp
  271. accfonts/vpl2vpl
  272. adhocfilelist/adhocfilelist.sh
  273. albatross/albatross.sh
  274. arara/arara.sh
  275. attachfile2/pdfatfi.pl
  276. bundledoc/arlatex
  277. bundledoc/bundledoc
  278. checkcites/checkcites.lua
  279. checklistings/checklistings.sh
  280. chklref/chklref.pl
  281. chktex/chkweb.sh
  282. chktex/deweb.pl
  283. cjk-gs-integrate/cjk-gs-integrate.pl
  284. clojure-pamphlet/pamphletangler
  285. cluttex/cluttex.lua
  286. context/perl/mptopdf.pl
  287. ctan-o-mat/ctan-o-mat.pl
  288. ctanbib/ctanbib
  289. ctanify/ctanify
  290. ctanupload/ctanupload.pl
  291. de-macro/de-macro
  292. dosepsbin/dosepsbin.pl
  293. digestif/digestif.texlua
  294. dtxgen/dtxgen
  295. dviasm/dviasm.py
  296. dviinfox/dviinfox.pl
  297. epstopdf/epstopdf.pl
  298. findhyph/findhyph
  299. fontools/afm2afm
  300. fontools/autoinst
  301. fontools/ot2kpx
  302. fragmaster/fragmaster.pl
  303. git-latexdiff/git-latexdiff
  304. installfont/installfont-tl
  305. jfmutil/jfmutil.pl
  306. ketcindy/ketcindy.sh
  307. latex-git-log/latex-git-log
  308. latex-papersize/latex-papersize.py
  309. latex2man/latex2man
  310. latex2nemeth/latex2nemeth
  311. latexdiff/latexdiff-vc.pl
  312. latexdiff/latexdiff.pl
  313. latexdiff/latexrevise.pl
  314. latexfileversion/latexfileversion
  315. latexindent/latexindent.pl
  316. latexmk/latexmk.pl
  317. latexpand/latexpand
  318. light-latex-make/llmk.lua
  319. ltxfileinfo/ltxfileinfo
  320. ltximg/ltximg.pl
  321. luafindfont/luafindfont.lua
  322. luaotfload/luaotfload-tool.lua
  323. lwarp/lwarpmk.lua
  324. make4ht/make4ht
  325. match_parens/match_parens
  326. mf2pt1/mf2pt1.pl
  327. mkjobtexmf/mkjobtexmf.pl
  328. optexcount/optexcount
  329. pdfbook2/pdfbook2
  330. pdfcrop/pdfcrop.pl
  331. pdfjam/pdfjam
  332. pdflatexpicscale/pdflatexpicscale.pl
  333. pdftex-quiet/pdftex-quiet
  334. pdfxup/pdfxup
  335. pfarrei/a5toa4.tlu
  336. pfarrei/pfarrei.tlu
  337. pkfix-helper/pkfix-helper
  338. pkfix/pkfix.pl
  339. ps2eps/ps2eps.pl
  340. purifyeps/purifyeps
  341. pythontex/depythontex.py
  342. pythontex/pythontex.py
  343. simpdftex/simpdftex
  344. spix/spix.py
  345. srcredact/srcredact.pl
  346. sty2dtx/sty2dtx.pl
  347. tex4ebook/tex4ebook
  348. tex4ht/ht.sh
  349. tex4ht/htcontext.sh
  350. tex4ht/htlatex.sh
  351. tex4ht/htmex.sh
  352. tex4ht/httex.sh
  353. tex4ht/httexi.sh
  354. tex4ht/htxelatex.sh
  355. tex4ht/htxetex.sh
  356. tex4ht/mk4ht.pl
  357. tex4ht/xhlatex.sh
  358. texcount/texcount.pl
  359. texdef/texdef.pl
  360. texdiff/texdiff
  361. texdirflatten/texdirflatten
  362. texdoc/texdoc.tlu
  363. texdoctk/texdoctk.pl
  364. texfot/texfot.pl
  365. texlive-extra/allcm.sh
  366. texlive-extra/allneeded.sh
  367. texlive-extra/dvi2fax.sh
  368. texlive-extra/dvired.sh
  369. texlive-extra/e2pall.pl
  370. texlive-extra/fontinst.sh
  371. texlive-extra/kpsetool.sh
  372. texlive-extra/kpsewhere.sh
  373. texlive-extra/ps2frag.sh
  374. texlive-extra/pslatex.sh
  375. texlive-extra/texconfig-dialog.sh
  376. texlive-extra/texconfig-sys.sh
  377. texlive-extra/texconfig.sh
  378. texlive-extra/texlinks.sh
  379. texlive-extra/xelatex-unsafe.sh
  380. texlive-extra/xetex-unsafe.sh
  381. texlive/fmtutil-sys.sh
  382. texlive/fmtutil-user.sh
  383. texlive/fmtutil.pl
  384. texlive/mktexlsr
  385. texlive/mktexmf
  386. texlive/mktexpk
  387. texlive/mktextfm
  388. texlive/rungs.lua
  389. texlive/updmap-sys.sh
  390. texlive/updmap-user.sh
  391. texlive/updmap.pl
  392. texliveonfly/texliveonfly.py
  393. texloganalyser/texloganalyser
  394. texlogfilter/texlogfilter
  395. texlogsieve/texlogsieve
  396. texplate/texplate.sh
  397. thumbpdf/thumbpdf.pl
  398. typeoutfileinfo/typeoutfileinfo.sh
  399. xindex/xindex.lua
  400. xindy/texindy.pl
  401. xindy/xindy.pl
  402. "
  403. install -m755 -d "$pkgdir/usr/bin"
  404. install -m755 -d "$pkgdir/usr/share/man/man1"
  405. for _script in ${_linked_scripts}; do
  406. _scriptbase=$(basename $_script)
  407. _scriptbase=${_scriptbase%.*}
  408. ln -s /usr/share/texmf-dist/scripts/${_script} "${pkgdir}/usr/bin/${_scriptbase}"
  409. if [[ -f "$srcdir/texlive-man/man1/${_scriptbase}.1" ]]; then
  410. install -m644 "$srcdir/texlive-man/man1/${_scriptbase}.1" "${pkgdir}/usr/share/man/man1/"
  411. fi
  412. done
  413. ln -s /usr/share/texmf-dist/scripts/listings-ext/listings-ext.sh "${pkgdir}/usr/bin/listings-ext.sh"
  414. # additional symlinks
  415. ln -s allcm "${pkgdir}"/usr/bin/allec
  416. ln -s cluttex "${pkgdir}"/usr/bin/cllualatex
  417. ln -s cluttex "${pkgdir}"/usr/bin/clxelatex
  418. ln -s epstopdf "${pkgdir}"/usr/bin/repstopdf
  419. ln -s fmtutil "${pkgdir}"/usr/bin/mktexfmt
  420. ln -s kpsetool "${pkgdir}"/usr/bin/kpsepath
  421. ln -s kpsetool "${pkgdir}"/usr/bin/kpsexpand
  422. ln -s luaotfload-tool "${pkgdir}"/usr/bin/mkluatexfontdb
  423. ln -s mktexlsr "${pkgdir}"/usr/bin/texhash
  424. ln -s pdfcrop "${pkgdir}"/usr/bin/rpdfcrop
  425. ln -s texdef "${pkgdir}"/usr/bin/latexdef
  426. for _scriptbase in allec kpsepath kpsexpand mktexfmt texhash; do
  427. install -m644 "$srcdir/texlive-man/man1/${_scriptbase}.1" "${pkgdir}/usr/share/man/man1/"
  428. done
  429. }