aboutsummaryrefslogtreecommitdiffstats
path: root/testing/texlive/APKBUILD
blob: 322ac820292a23ed00849669d34e3f0bae2c915e (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=20150521
pkgrel=2
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 fontconfig-dev"
makedepends="$depends_dev"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="ftp://ftp.tug.org/historic/systems/$pkgname/${pkgver%????}/$pkgname-$pkgver-source.tar.xz"

_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 \
		--enable-epsfwin \
		--enable-ipc \
		--enable-luatex \
		--enable-mftalkwin \
		--enable-regiswin \
		--enable-shared \
		--enable-tektronixwin \
		--enable-unitermwin \
		--enable-xetex \
		--disable-biber \
		--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-xdvik \
		--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-icu \
		--with-system-libpaper \
		--with-system-libpng \
		--with-system-pixman \
		--with-system-poppler \
		--with-system-xpdf \
		--with-system-zlib \
		--with-system-zziplib \
		--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
	rm -f "$pkgdir"/usr/lib/*.la
}

md5sums="e526bd57118c4c4d5e9d525d20b5ac02  texlive-20150521-source.tar.xz"
sha256sums="ed9bcd7bdce899c3c27c16a8c5c3017c4f09e1d7fd097038351b72497e9d4669  texlive-20150521-source.tar.xz"
sha512sums="9d06bb88c489715787ce619c4c6b5e2d4251e1db8d48ae7fe2d1a253634c76bc6d7282ef9c93c77847845cae01eafb58dfb37ba3fb83a6d223f0d7fe8f5d3855  texlive-20150521-source.tar.xz"