void-packages/srcpkgs/texlive-bin/template
2019-05-10 13:51:36 +02:00

24 lines
745 B
Bash

# Template file for 'texlive-bin'
pkgname=texlive-bin
version=2019
revision=1
depends="texlive${version}-bin"
short_desc="TeX Live Binary distribution through tl-install (newest version)"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="GPL-2"
homepage="http://tug.org/texlive/"
provides="texlive-${version}_${revision}"
do_install() {
vmkdir etc/profile.d
case "$XBPS_TARGET_MACHINE" in
i686) tlarch=i386-linux;;
x86_64) tlarch=x86_64-linux;;
x86_64-musl) tlarch=x86_64-linuxmusl;;
arm*) tlarch=armhf-linux;;
aarch64) tlarch=aarch64-linux;;
*) broken="$XBPS_TARGET_MACHINE is not supported";;
esac
sed -e "s/@@ARCH@@/${tlarch}/; s/@@VERSION@@/${version}/" \
${FILESDIR}/texlive.sh >${DESTDIR}/etc/profile.d/texlive.sh
}