summaryrefslogtreecommitdiffstats
path: root/testing/texlive/APKBUILD
blob: d145e6aad85c82a79eb46132753cba70ebb205ef (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
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=texlive
pkgver=20140525
pkgrel=3
pkgdesc="A complete TeX distribution"
url="http://tug.org/texlive/"
arch="all"
license="GPL"
depends=""
depends_dev="freetype-dev libpng-dev poppler-dev icu-dev harfbuzz-dev
	cairo-dev pixman-dev zziplib-dev libpaper-dev graphite2-dev
	libxmu-dev"
makedepends="$depends_dev"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="ftp://tug.org/texlive/historic/2014/texlive-$pkgver-source.tar.xz
	musl-fixes.patch"

_builddir="$srcdir"/texlive-$pkgver-source
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

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 \
		--with-system-freetype2 \
		--with-system-zlib \
		--with-system-libpng \
		--with-system-xpdf \
		--with-system-poppler \
		--with-system-icu \
		--with-system-harfbuzz \
		--with-system-icu \
		--with-system-graphite2 \
		--with-system-cairo \
		--with-system-pixman \
		--with-system-zziplib \
		--with-system-libpaper \
		--without-texinfo \
		--disable-dialog \
		--disable-multiplatform \
		--enable-epsfwin \
		--enable-mftalkwin \
		--enable-regiswin \
		--enable-tektronixwin \
		--enable-unitermwin \
		--with-ps=gs \
		--disable-psutils \
		--disable-t1utils \
		--enable-ipc \
		--disable-biber \
		--disable-bibtex-x \
		--disable-dvipng \
		--disable-dvipsk \
		--disable-chktex \
		--disable-lcdf-typetools \
		--disable-pdfopen \
		--disable-ps2eps \
		--disable-ps2pkm \
		--disable-detex \
		--disable-ttf2pk2 \
		--disable-tex4htk \
		--disable-cjkutils \
		--disable-xdvik \
		--disable-xindy \
		--enable-luatex \
		--disable-dvi2tty \
		--disable-dvisvgm \
		--disable-vlna \
		--enable-shared \
		--disable-native-texlive-build \
		--disable-largefile \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"/build
	make DESTDIR="$pkgdir" install || return 1
	rm -f "$pkgdir"/usr/lib/*.la
}

md5sums="09ee265ff51637827559affc7304078c  texlive-20140525-source.tar.xz
c5a1569dac61bf0b7fbf26eebe987e4e  musl-fixes.patch"
sha256sums="08bb4eb02923ac65ce1183612c6b64da185904f26a1660f5ca4f902d055795be  texlive-20140525-source.tar.xz
10a80468ec4c6f5462f1a1b7751dcd5ebfb06c156d6e1d9b06581adfcbf18d5a  musl-fixes.patch"
sha512sums="09169af15d806abd721e55ffc20ed684c0a7ad60783272d49fabfe9c88857c4abd15b60f30e3f5511ceda1982fdc1d33db8265f97e374bfa5b250dbb5612f8ad  texlive-20140525-source.tar.xz
7bdbb02e733314275b88cdabb21b3f1959756d2291c9685891430681944d898cd59cac501a613a3f2dd3e2f946a1b156b215ae86f5643c3ac769e376e2123d17  musl-fixes.patch"