diff options
-rw-r--r-- | community/texlive/APKBUILD | 26 | ||||
-rw-r--r-- | community/texlive/texlive.trigger | 4 |
2 files changed, 23 insertions, 7 deletions
diff --git a/community/texlive/APKBUILD b/community/texlive/APKBUILD index ba7a9e9daf..c6340802bc 100644 --- a/community/texlive/APKBUILD +++ b/community/texlive/APKBUILD @@ -7,13 +7,14 @@ pkgdesc="Comprehensive TeX document production system" url="http://tug.org/texlive/" arch="all" license="GPL" -depends="perl" +depends="perl texmf-dist" depends_dev="" makedepends="freetype-dev libpng-dev poppler-dev icu-dev harfbuzz-dev cairo-dev pixman-dev zziplib-dev libpaper-dev graphite2-dev libxmu-dev fontconfig-dev libxaw-dev motif-dev" install="" -subpackages="$pkgname-dev $pkgname-doc xdvik:xdvi $pkgname-xetex:xetex $pkgname-luatex:lua $pkgname-full:meta" +triggers="$pkgname.trigger=/usr/share/texmf-dist" +subpackages="$pkgname-dev $pkgname-doc xdvik:xdvi $pkgname-xetex:xetex $pkgname-luatex:lua $pkgname-dvi:dvi $pkgname-full:meta" source="ftp://ftp.tug.org/texlive/historic/${pkgver:0:4}/texlive-$pkgver-source.tar.xz" builddir="$srcdir"/texlive-${pkgver}-source @@ -22,6 +23,7 @@ _pdftex="amstex cslatex csplain eplain etex jadetex latex lollipop mex mllatex mltex pdfetex pdfcslatex pdfcsplain pdfjadetex pdflatex pdfmex pdfxmltex texsis utf8mex xmltex" _xetex="xelatex xelollipop" +_dvi="afm2tfm bbox dvigif dvipng dvips epsffit extractres includeres ps2eps psbook psjoin psnup psresize psselect pstops" build() { cd "$builddir" @@ -49,23 +51,23 @@ build() { --enable-tektronixwin \ --enable-unitermwin \ --enable-xetex \ + --enable-dvipng \ + --enable-dvipsk \ + --enable-ps2eps \ + --enable-psutils \ --disable-bibtex-x \ --disable-chktex \ --disable-cjkutils \ --disable-detex \ --disable-dialog \ --disable-dvi2tty \ - --disable-dvipng \ - --disable-dvipsk \ --disable-dvisvgm \ --disable-largefile \ --disable-lcdf-typetools \ --disable-multiplatform \ --disable-native-texlive-build \ --disable-pdfopen \ - --disable-ps2eps \ --disable-ps2pkm \ - --disable-psutils \ --disable-t1utils \ --disable-tex4htk \ --disable-ttf2pk2 \ @@ -126,11 +128,21 @@ xetex() { meta() { pkgdesc="A complete TeX distribution" - depends="$pkgname $pkgname-doc $pkgname-luatex $pkgname-xetex xdvik" + depends="$pkgname $pkgname-doc $pkgname-luatex $pkgname-xetex xdvik $pkgname-dvi texmf-dist-full" mkdir -p "$subpkgdir" } +dvi() { + pkgdesc="Tools for dvi based workflow (e.g. dvips)" + depends="$pkgname" + + install -d -m 0755 "$subpkgdir"/usr/bin + for tool in $_dvi; do + mv "${pkgdir}/usr/bin/${tool}" "${subpkgdir}/usr/bin/" + done +} + lua() { pkgdesc="LuaTeX is an extended version of pdfTeX, scriptable in Lua" depends="bash $pkgname" # lua2dox_filter is a bash script diff --git a/community/texlive/texlive.trigger b/community/texlive/texlive.trigger new file mode 100644 index 0000000000..d549354929 --- /dev/null +++ b/community/texlive/texlive.trigger @@ -0,0 +1,4 @@ +#!/bin/sh +texhash +fmtutil-sys --all +exit 0 |