blob: 888d84ff888e4e1a5386a6ad685c6e49c049629d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
|
# Contributor: Isaac Dunham <ibid.ag@gmail.com>
# Maintainer:
pkgname=texlive
pkgver=20160523b
pkgrel=2
pkgdesc="Comprehensive TeX document production system"
url="http://tug.org/texlive/"
arch="all"
license="GPL"
depends="perl"
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"
source="ftp://ftp.tug.org/texlive/historic/${pkgver:0:4}/texlive-$pkgver-source.tar.xz"
builddir="$srcdir"/texlive-${pkgver/b}-source
_luatex="dvilualatex dviluatex lualollipop"
_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"
build() {
cd "$builddir"
mkdir -p $builddir/build && cd $builddir/build
../configure -C \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--localstatedir=/var \
--enable-biber \
--enable-epsfwin \
--enable-ipc \
--enable-luatex \
--enable-mftalkwin \
--enable-regiswin \
--enable-shared \
--enable-tektronixwin \
--enable-unitermwin \
--enable-xetex \
--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 \
--disable-vlna \
--disable-xindy \
--with-ps=gs \
--with-banner-add="/Alpine Linux" \
--with-system-cairo \
--with-system-freetype2 \
--with-system-graphite2 \
--with-system-harfbuzz \
--with-system-icu \
--with-system-libpaper \
--with-system-libpng \
--with-system-pixman \
--with-system-poppler \
--with-system-xpdf \
--with-system-zlib \
--with-system-zziplib \
--with-x-dvi-toolkit=motif \
--without-texinfo \
|| return 1
make || return 1
}
package() {
cd "$builddir"/build
make DESTDIR="$pkgdir" install || return 1
cp -rf ../texk/tests/TeXLive \
"$pkgdir"/usr/share/texmf-dist/scripts/texlive || return 1
local texcmd; for texcmd in $_pdftex; do
ln -s pdftex "$pkgdir"/usr/bin/$texcmd || return 1
done
ln -s eptex "$pkgdir"/usr/bin/platex || return 1
ln -s euptex "$pkgdir"/usr/bin/uplatex || return 1
sed -i -e 's:SELFAUTOPARENT:TEXMFROOT:' \
"$pkgdir"/usr/share/texmf-dist/scripts/texlive/tlmgr.pl || return 1
sed -i -e 's:^\(TEXMFROOT *= *\)$SELFAUTOPARENT$:\1/usr/share:g' \
"$pkgdir"/usr/share/texmf-dist/web2c/texmf.cnf || return 1
}
xetex() {
# Split off XeTeX because it depends on graphite/harfbuzz/icu
pkgdesc="TeX typesetting engine supporting modern typography and bidirectional text"
depends="$pkgname"
install -d -m 0755 "$subpkgdir"/usr/bin || return 1
mv "$pkgdir"/usr/bin/xetex "$subpkgdir"/usr/bin/ || return 1
local texcmd; for texcmd in $_xetex; do
ln -s xetex "$subpkgdir"/usr/bin/$texcmd || return 1
done
}
meta() {
pkgdesc="A complete TeX distribution"
depends="$pkgname $pkgname-doc $pkgname-luatex $pkgname-xetex xdvik"
mkdir -p "$subpkgdir"
}
lua() {
pkgdesc="LuaTeX is an extended version of pdfTeX, scriptable in Lua"
depends="bash $pkgname" # lua2dox_filter is a bash script
mkdir -p "$subpkgdir" && cd "$subpkgdir" || return 1
install -d -m 0755 usr/bin usr/lib \
usr/share/texmf-dist/scripts/context/stubs/unix || return 1
mv "$pkgdir"/usr/bin/*lua* "$subpkgdir"/usr/bin/ || return 1
mv "$pkgdir"/usr/lib/lib*lua*.so.* "$subpkgdir"/usr/lib/ || return 1
mv "$pkgdir"/usr/share/texmf-dist/scripts/*lua* \
"$subpkgdir"/usr/share/texmf-dist/scripts/ || return 1
mv "$pkgdir"/usr/share/texmf-dist/scripts/context/stubs/unix/luatools \
"$subpkgdir"/usr/share/texmf-dist/scripts/context/stubs/unix/luatools \
|| return 1
local texcmd; for texcmd in $_luatex
do ln -s luatex "$subpkgdir"/usr/bin/$texcmd || return 1
done
cd -
# The following directories are used strictly for Lua scripts:
# for DIR in
# usr/share/texmf-dist/scripts/checkcites/ \
# usr/share/texmf-dist/scripts/getmap/ \
# usr/share/texmf-dist/scripts/m-tx/ \
# usr/share/texmf-dist/scripts/musixtex/ \
# usr/share/texmf-dist/scripts/pmx/ \
# usr/share/texmf-dist/scripts/pmxchords/ \
# usr/share/texmf-dist/scripts/ptex2pdf/ ;
# do
# mv "$pkgdir"/"$DIR" "$subpkgdir"/usr/share/texmf-dist/scripts/
# done
}
xdvi() {
# currently, xdvi needs a number of files and scripts from texlive;
# we split it off so that it doesn't drag in X and Motif.
depends="texlive"
pkgdesc="Xdvi from texlive, using the texlive libraries"
provides="xdvi"
mkdir -p "$subpkgdir" && cd "$subpkgdir" || return 1
install -d -m 0755 usr/bin usr/share/texmf-dist/ || return 1
mv "$pkgdir"/usr/bin/xdvi "$pkgdir"/usr/bin/xdvi-* usr/bin/ || return 1
mv "$pkgdir"/usr/share/texmf-dist/xdvi usr/share/texmf-dist/ || return 1
}
md5sums="1e75db3412b3e2945fa94b0a423a29c7 texlive-20160523b-source.tar.xz"
sha256sums="a8b32ca47f0a403661a09e202f4567a995beb718c18d8f81ca6d76daa1da21ed texlive-20160523b-source.tar.xz"
sha512sums="915fa2f5e2099dd385ef81033db7aafdf09558c0c200fed0748a8a42fd61f69d3eaac9decea334e30981af739dd81061a9b1d6853c7f6d00285fe0be40e26c3e texlive-20160523b-source.tar.xz"
|