X-Original-To: alpine-aports@lists.alpinelinux.org Received: from mail.ovgu.de (mail.ovgu.de [141.44.1.66]) by lists.alpinelinux.org (Postfix) with ESMTP id A68DA5C4C81 for ; Wed, 16 Aug 2017 17:12:26 +0000 (GMT) Received: from mail.ovgu.de (localhost [127.0.0.1]) by localhost (Postfix) with SMTP id 3644240064 for ; Wed, 16 Aug 2017 19:12:26 +0200 (CEST) Received: from notebook-marian.fritz.box (pD9EEBFA7.dip0.t-ipconnect.de [217.238.191.167]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.ovgu.de (Postfix) with ESMTPSA id F34F240062; Wed, 16 Aug 2017 19:12:24 +0200 (CEST) From: Marian Buschsieweke To: alpine-aports@lists.alpinelinux.org Cc: Marian Buschsieweke Subject: [alpine-aports] [PATCH] testing/texmf-dist: new aport Date: Wed, 16 Aug 2017 19:12:01 +0200 Message-Id: <20170816171201.2959-1-marian.buschsieweke@ovgu.de> X-Mailer: git-send-email 2.14.1 X-PMX-Version: 6.3.3.2656215, Antispam-Engine: 2.7.2.2107409, Antispam-Data: 2017.8.16.170016, AntiVirus-Engine: 5.40.0, AntiVirus-Data: 2017.8.15.5400002 X-PMX-Spam: Gauge=IIIIIIII, Probability=8%, Report=' HTML_00_01 0.05, HTML_00_10 0.05, BODY_SIZE_3000_3999 0, BODY_SIZE_5000_LESS 0, BODY_SIZE_7000_LESS 0, LEGITIMATE_SIGNS 0, MULTIPLE_REAL_RCPTS 0, RDNS_POOLED 0, RDNS_SUSP 0, RDNS_SUSP_SPECIFIC 0, URI_WITH_PATH_ONLY 0, __ANY_URI 0, __C230066_P5 0, __CC_NAME 0, __CC_NAME_DIFF_FROM_ACC 0, __CC_REAL_NAMES 0, __CP_URI_IN_BODY 0, __FRAUD_MONEY_CURRENCY 0, __FRAUD_MONEY_CURRENCY_DOLLAR 0, __FROM_DOMAIN_IN_ANY_CC1 0, __FROM_DOMAIN_IN_RCPT 0, __HAS_CC_HDR 0, __HAS_FROM 0, __HAS_MSGID 0, __HAS_X_MAILER 0, __HTTPS_URI 0, __MIME_TEXT_ONLY 0, __MIME_TEXT_P 0, __MIME_TEXT_P1 0, __MULTIPLE_URI_TEXT 0, __NO_HTML_TAG_RAW 0, __RDNS_POOLED_10 0, __SANE_MSGID 0, __SUBJ_ALPHA_END 0, __TO_MALFORMED_2 0, __TO_NO_NAME 0, __URI_IN_BODY 0, __URI_NOT_IMG 0, __URI_NO_WWW 0, __URI_NS , __URI_WITH_PATH 0' X-Spam-Score: Gauge=IIIIIIII X-PMX-consideredAsSpam: no X-Mailinglist: alpine-aports Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: TeX Live texmf core distribution http://tug.org/texlive/ The main package "texmf-dist" provides the core texmf-dist distribution. This allows texlive to work, as long as only the most basic LaTeX packages are used. The sub-package "texmf-dist-most" provides most of the texlive packages. It depends on texmf-dist, as it only adds packages not included in texmf-dist. This is the least afford way to get LaTeX working in Alpine Linux. Ideally, the texlive packages should be divided in multiple separate packages to reduce required network bandwidth on updates. As always with any LaTeX code and LaTeX related code, the trigger is a piece of cargo cult programming that happened to work... --- testing/texmf-dist/APKBUILD | 43 +++++++++++++++++++++++++++++++++++ testing/texmf-dist/texmf-dist.trigger | 4 ++++ 2 files changed, 47 insertions(+) create mode 100644 testing/texmf-dist/APKBUILD create mode 100644 testing/texmf-dist/texmf-dist.trigger diff --git a/testing/texmf-dist/APKBUILD b/testing/texmf-dist/APKBUILD new file mode 100644 index 0000000000..1d599b4c9e --- /dev/null +++ b/testing/texmf-dist/APKBUILD @@ -0,0 +1,43 @@ +# Contributor: Marian Buschsieweke +# Maintainer: Marian Buschsieweke +pkgname=texmf-dist +pkgver=2017.44907 +pkgrel=0 +pkgdesc="TeX Live texmf core distribution" +url="http://tug.org/texlive/" +arch="noarch" +license="GPL" +depends="texlive" +depends_dev="" +makedepends="texlive-full" +install="" +subpackages="${pkgname}-most" +source="${pkgname}-${pkgver}.tar.xz::https://github.com/maribu/${pkgname}/raw/master/${pkgname}-${pkgver}.tar.xz + ${pkgname}-most-${pkgver}.tar.xz::https://github.com/maribu/${pkgname}/raw/master/${pkgname}-most-${pkgver}.tar.xz" +options="!check" +triggers="texmf-dist.trigger=/usr/share/texmf-dist" +unpack() { + # Prevent unpacking by overwriting the unpack() function + return 0 +} + +build(){ + return 0 +} + +package() { + mkdir -p "${pkgdir}/usr/share" + cd "${pkgdir}/usr/share" + tar xJf "${srcdir}/${pkgname}-${pkgver}.tar.xz" +} + +most() { + pkgdesc="TeX Live texmf distribution including most of the TeX Live distribution" + depends="${pkgname}" + mkdir -p "${subpkgdir}/usr/share" + cd "${subpkgdir}/usr/share" + tar xJf "${srcdir}/${pkgname}-most-${pkgver}.tar.xz" +} + +sha512sums="9d08aa5850f89bd7a1327a0a2e4aef117ea05cc71d074fc95d3cba4494414426124976703b85c5a2d58b4358d74e9f23bd97b5668c6fa872acf4daf9fb92be27 texmf-dist-2017.44907.tar.xz +c53926b9a9c1092a35cc1d32593ab46828877ab2faf4f582910a62bda7de6f81d9db61b5c508e768c68a80fa7a0c6470b05f3114a8ff98512fe811198230a8cd texmf-dist-most-2017.44907.tar.xz" diff --git a/testing/texmf-dist/texmf-dist.trigger b/testing/texmf-dist/texmf-dist.trigger new file mode 100644 index 0000000000..d549354929 --- /dev/null +++ b/testing/texmf-dist/texmf-dist.trigger @@ -0,0 +1,4 @@ +#!/bin/sh +texhash +fmtutil-sys --all +exit 0 -- 2.14.1 --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---