diff options
Diffstat (limited to 'community/texmf-dist/APKBUILD')
-rw-r--r-- | community/texmf-dist/APKBUILD | 312 |
1 files changed, 294 insertions, 18 deletions
diff --git a/community/texmf-dist/APKBUILD b/community/texmf-dist/APKBUILD index 593683f409..6c24c58005 100644 --- a/community/texmf-dist/APKBUILD +++ b/community/texmf-dist/APKBUILD @@ -1,21 +1,79 @@ # Contributor: Marian Buschsieweke <marian.buschsieweke@ovgu.de> # Maintainer: Marian Buschsieweke <marian.buschsieweke@ovgu.de> pkgname=texmf-dist -pkgver=2017.44907 -pkgrel=1 +_core=2017.45811 +_bibtexextra=2017.45810 +_fontsextra=2017.45939 +_formatsextra=2017.45678 +_games=2017.44131 +_humanities=2017.45709 +_langchinese=2017.45677 +_langcyrillic=2017.45692 +_langextra=2017.45591 +_langgreek=2017.44917 +_langjapanese=2017.45699 +_langkorean=2017.44467 +_latexextra=2017.45733 +_music=2017.45674 +_pictures=2017.45569 +_pstricks=2017.45644 +_publishers=2017.45734 +_science=2017.45707 +pkgver=${_core} +pkgrel=0 pkgdesc="TeX Live texmf core distribution" url="http://tug.org/texlive/" arch="noarch" license="GPL" -depends="texlive" +depends="" depends_dev="" -makedepends="texlive-full xz" +makedepends="unzip xz" 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" +subpackages=" + ${pkgname}-most + ${pkgname}-lang + ${pkgname}-full + ${pkgname}-bibtexextra + ${pkgname}-fontsextra + ${pkgname}-formatsextra + ${pkgname}-games + ${pkgname}-humanities + ${pkgname}-langchinese + ${pkgname}-langcyrillic + ${pkgname}-langextra + ${pkgname}-langgreek + ${pkgname}-langjapanese + ${pkgname}-langkorean + ${pkgname}-latexextra + ${pkgname}-music + ${pkgname}-pictures + ${pkgname}-pstricks + ${pkgname}-publishers + ${pkgname}-science + " +source=" + https://sources.archlinux.org/other/texlive/texlive-core-${_core}-src.zip + https://sources.archlinux.org/other/texlive/texlive-bibtexextra-${_bibtexextra}-src.zip + https://sources.archlinux.org/other/texlive/texlive-fontsextra-${_fontsextra}-src.zip + https://sources.archlinux.org/other/texlive/texlive-formatsextra-${_formatsextra}-src.zip + https://sources.archlinux.org/other/texlive/texlive-games-${_games}-src.zip + https://sources.archlinux.org/other/texlive/texlive-humanities-${_humanities}-src.zip + https://sources.archlinux.org/other/texlive/texlive-langchinese-${_langchinese}-src.zip + https://sources.archlinux.org/other/texlive/texlive-langcyrillic-${_langcyrillic}-src.zip + https://sources.archlinux.org/other/texlive/texlive-langextra-${_langextra}-src.zip + https://sources.archlinux.org/other/texlive/texlive-langgreek-${_langgreek}-src.zip + https://sources.archlinux.org/other/texlive/texlive-langjapanese-${_langjapanese}-src.zip + https://sources.archlinux.org/other/texlive/texlive-langkorean-${_langkorean}-src.zip + https://sources.archlinux.org/other/texlive/texlive-latexextra-${_latexextra}-src.zip + https://sources.archlinux.org/other/texlive/texlive-music-${_music}-src.zip + https://sources.archlinux.org/other/texlive/texlive-pictures-${_pictures}-src.zip + https://sources.archlinux.org/other/texlive/texlive-pstricks-${_pstricks}-src.zip + https://sources.archlinux.org/other/texlive/texlive-publishers-${_publishers}-src.zip + https://sources.archlinux.org/other/texlive/texlive-science-${_science}-src.zip + duplicates.txt + " options="!check" -triggers="texmf-dist.trigger=/usr/share/texmf-dist" + unpack() { # Prevent unpacking by overwriting the unpack() function return 0 @@ -26,18 +84,236 @@ build(){ } package() { - mkdir -p "${pkgdir}/usr/share" - cd "${pkgdir}/usr/share" - tar xJf "${srcdir}/${pkgname}-${pkgver}.tar.xz" + # Packages are packed in .tar.xz archives, which in turn are bundled into a + # zip. We will unzip each bundle into pkgs-packed and untar all packages of + # that bundle into pkgs-unpacked. Since some packages are expected to + # be unpacked into /usr/share and others into /usr/shared/texmf-dist, this + # will create a mess. We will later copy all folders beginning with texmf + # into /usr/share, and merge every remaining file into + # /usr/share/texmf-dist to clean up this mess. + + mkdir -p "${pkgdir}/usr/share/" + mkdir -p "${srcdir}/pkgs-packed" + mkdir -p "${srcdir}/pkgs-unpacked" + cd "${srcdir}/pkgs-packed" + unzip "${srcdir}/texlive-core-${_core}-src.zip" > /dev/null + cd "${srcdir}/pkgs-unpacked" + find "${srcdir}/pkgs-packed" -name '*.tar.xz' -exec tar -xf {} \; + find . -maxdepth 1 -name 'texmf*' -exec mv {} "${pkgdir}/usr/share/" \; + find . -type d -mindepth 1 -exec mkdir -p "${pkgdir}/usr/share/texmf-dist/"{} \; + find . -type f -exec mv {} "${pkgdir}/usr/share/texmf-dist/"{} \; + + # Remove files already provided by texlive* packages + cd "${pkgdir}/usr/share/texmf-dist" + for file in $(cat "${srcdir}/duplicates.txt"); do + rm -f $file + done + + rm -rf "${srcdir}/pkgs-packed" "${srcdir}/pkgs-unpacked" +} + +pack_subpkg() { + # See comment in package(), same applies here + mkdir -p "${subpkgdir}/usr/share/" + mkdir -p "${srcdir}/pkgs-packed" + mkdir -p "${srcdir}/pkgs-unpacked" + cd "${srcdir}/pkgs-packed" + unzip "${srcdir}/texlive-${subpkgname#texmf-dist-}-${pkgver}-src.zip" > /dev/null + cd "${srcdir}/pkgs-unpacked" + find "${srcdir}/pkgs-packed" -name '*.tar.xz' -exec tar -xf {} \; + find . -maxdepth 1 -name 'texmf*' -exec mv {} "${subpkgdir}/usr/share/" \; + find . -type d -mindepth 1 -exec mkdir -p "${subpkgdir}/usr/share/texmf-dist/"{} \; + find . -type f -exec mv {} "${subpkgdir}/usr/share/texmf-dist/"{} \; + + # Remove files already provided by texlive* packages + cd "${subpkgdir}/usr/share/texmf-dist" + for file in $(cat "${srcdir}/duplicates.txt"); do + rm -f $file + done + + rm -rf "${srcdir}/pkgs-packed" "${srcdir}/pkgs-unpacked" } 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" + pkgdesc="TeX Live texmf distribution including most packages" + pkgver="2017" + pkgrel=0 + depends=" + ${pkgname} + ${pkgname}-bibtexextra + ${pkgname}-fontsextra + ${pkgname}-formatsextra + ${pkgname}-games + ${pkgname}-humanities + ${pkgname}-latexextra + ${pkgname}-music + ${pkgname}-pictures + ${pkgname}-pstricks + ${pkgname}-publishers + ${pkgname}-science + " + mkdir -p "${subpkgdir}" +} + +lang() { + pkgdesc="TeX Live texmf distribution: Additional languages" + pkgver="2017" + pkgrel=0 + depends=" + ${pkgname} + ${pkgname}-langchinese + ${pkgname}-langcyrillic + ${pkgname}-langextra + ${pkgname}-langgreek + ${pkgname}-langjapanese + ${pkgname}-langkorean + " + mkdir -p "${subpkgdir}" +} + +full() { + pkgdesc="Full TeX Live texmf distribution" + pkgver="2017" + pkgrel=0 + depends="${pkgname}-most ${pkgname}-lang" + mkdir -p "${subpkgdir}" +} + +bibtexextra() { + pkgdesc="TeX Live texmf distribution: Additional BibTeX styles and bibliography DBs" + pkgver="${_bibtexextra}" + pkgrel=0 + pack_subpkg +} + +fontsextra() { + pkgdesc="TeX Live texmf distribution: Additional fonts" + pkgver="${_fontsextra}" + pkgrel=0 + pack_subpkg +} + +formatsextra() { + pkgdesc="TeX Live texmf distribution: Additional TeX formats" + pkgver="${_formatsextra}" + pkgrel=0 + pack_subpkg +} + +games() { + pkgdesc="TeX Live texmf distribution: Typesetting board games including chess" + pkgver="${_games}" + pkgrel=0 + pack_subpkg +} + +humanities() { + pkgdesc="TeX Live texmf distribution: Packages for humanities, law, linguistics, ..." + pkgver="${_humanities}" + pkgrel=0 + pack_subpkg +} + +langchinese() { + pkgdesc="TeX Live texmf distribution: Support for Chinese" + pkgver="${_langchinese}" + pkgrel=0 + pack_subpkg +} + +langcyrillic() { + pkgdesc="TeX Live texmf distribution: Support for Cyrillic languages" + pkgver="${_langcyrillic}" + pkgrel=0 + pack_subpkg +} + +langextra() { + pkgdesc="TeX Live texmf distribution: Additional languages" + pkgver="${_langextra}" + pkgrel=0 + pack_subpkg +} + +langgreek() { + pkgdesc="TeX Live texmf distribution: Support for Greek" + pkgver="${_langgreek}" + pkgrel=0 + pack_subpkg +} + +langjapanese() { + pkgdesc="TeX Live texmf distribution: Support for Japanese" + pkgver="${_langjapanese}" + pkgrel=0 + pack_subpkg +} + +langkorean() { + pkgdesc="TeX Live texmf distribution: Support for Korean" + pkgver="${_langkorean}" + pkgrel=0 + pack_subpkg +} + +latexextra() { + pkgdesc="TeX Live texmf distribution: Add-onpackages for LaTeX" + pkgver="${_latexextra}" + pkgrel=0 + pack_subpkg +} + +music() { + pkgdesc="TeX Live texmf distribution: Music typesetting packages" + pkgver="${_music}" + pkgrel=0 + pack_subpkg +} + +pictures() { + pkgdesc="TeX Live texmf distribution: Packages for drawing graphics" + pkgver="${_pictures}" + pkgrel=0 + pack_subpkg +} + +pstricks() { + pkgdesc="TeX Live texmf distribution: Additional PSTricks packages" + pkgver="${_pstricks}" + pkgrel=0 + pack_subpkg +} + +publishers() { + pkgdesc="TeX Live texmf distribution: LaTeX packages for specific publishers" + pkgver="${_publishers}" + pkgrel=0 + pack_subpkg +} + +science() { + pkgdesc="TeX Live texmf distribution: Typesetting for math and sciences" + pkgver="${_science}" + pkgrel=0 + pack_subpkg } -sha512sums="9d08aa5850f89bd7a1327a0a2e4aef117ea05cc71d074fc95d3cba4494414426124976703b85c5a2d58b4358d74e9f23bd97b5668c6fa872acf4daf9fb92be27 texmf-dist-2017.44907.tar.xz -c53926b9a9c1092a35cc1d32593ab46828877ab2faf4f582910a62bda7de6f81d9db61b5c508e768c68a80fa7a0c6470b05f3114a8ff98512fe811198230a8cd texmf-dist-most-2017.44907.tar.xz" +sha512sums="85823ca890894ea58a118519301ed836000ace5217dcb79cd6f099d0a8e239087beb81aa85bd514a7af9ed1462973f5562d3e07e22f9625ef232330a904efecf texlive-core-2017.45811-src.zip +49d8ee283797038b76bdaa0a819e8707fd4b5cd73deea7e6b3e14c0363ba9f708935b13b4251dc9b8ace6b606b9e6927d8674495c22fa857b905e0fb0278e07f texlive-bibtexextra-2017.45810-src.zip +d65cfc8917ceef5c899b012a02df2d139bf1b772c2e932edbf121ae6e5f4b0a4e9c0c9e7118f90f394e47bf5d34bb2c51df1375c5504fb61af13cbd0ee0518fb texlive-fontsextra-2017.45939-src.zip +9228a2da8a4e3b28b06243acb2fb243c6d8927e1847d1421d2478263d1e654ec1a0735027eef74f2dcd41369b1b07edde84765117985f2116d3bc2585c65ebbd texlive-formatsextra-2017.45678-src.zip +829d7fb5330cafeb4615b6c072bfa4f31b825108884b568c57e597ecd7daede01cc3f4de09dfb763a83b4bdc345bba2b59da0f67658414c26b66a7ebee700302 texlive-games-2017.44131-src.zip +141dad84db77e24bd4ab877f983f343bf8242fe68aa7a5fef1b7bd2653e4d77185e272585a10c2e081b046579a87a148be2c0fa346cf59f8166a3ce35dd56d3e texlive-humanities-2017.45709-src.zip +083d5d086b6e6c57f2be8172198fbb7b79a88c2a5c4b79a7c5ec1f3be50362453f566d0daa9d957c047f46104240dc2f79f636d31e45afdfd9785866ded8f37e texlive-langchinese-2017.45677-src.zip +b430c60c9a766324f32094370a98b737b87963b5365cefdade312099745b8681256de2f5b671d9f91112f6111316799d6e84fcec557ddab5f7380f40f37ec0cc texlive-langcyrillic-2017.45692-src.zip +c64288db823bf11b7fbbf5638fc578c244e0ea81d688715608b769b87cfe372d19ac47df43a889dce894405381bf319c2f13ad314198013a9058de3d6919a39f texlive-langextra-2017.45591-src.zip +fb3ab88a39e357039faeffc4311fa9d20d38746ff4c29c2aef297a806881c21423a4f3be5712955ba5c7f39c390b7906c2bbe16ba73133075c845f8a0d9d5e49 texlive-langgreek-2017.44917-src.zip +345a7962949ac481db62d65afb783c4d32478eb8525043998ed1714645875f7f2ea292a2606a3d08935e7a9e2c0f6e3263d58f329dd6e4ad97d29b6d4d75fd33 texlive-langjapanese-2017.45699-src.zip +cca9fba7cd3b0888949e0ed9799052be9c8957ff6784ea65f26306bce0c6812f15b94a919b3f2ecb197650a976bca2d41b52d74ddbfecdecfa4b61aed33516a0 texlive-langkorean-2017.44467-src.zip +b2b0cbd057b864bea1ce182fdd17153f09a716aa8254ca3ea6cd9b5a426e37631c9844be75f85a0c85f4fa1f340466555359c5a0d58433e752851cecea3afa92 texlive-latexextra-2017.45733-src.zip +3dcb9375d39615b0c983238d98cb2289f13bd31c6b42eddbfe8c10a2c5710cea33e42171e16534b19abe158c4124a6654d6306db69a0d889520ae9b5fa6c4033 texlive-music-2017.45674-src.zip +ee73f93bacde12c742eac451923a2749448e122b347c6de0242a027d8a318063e3ee556415895bd7297411188e0ae787123e25ce384b6d193cdb9f0246421cde texlive-pictures-2017.45569-src.zip +8ef6902a22ba407b42128b7e4e48a91d592c58abb8324460afb8e02ea12e328f1023b6d1657530cac5be29c6610055e2a7fe4725fe9a55e402e7106bc911f8bd texlive-pstricks-2017.45644-src.zip +4168ce44f866b5b7eaf600978887d1431f10ce0c75a406aa11340b70f1b44bbf800a95bd3b313a74921adc8f7b1400af04645d8bdb59f64e5d973ff57c15266e texlive-publishers-2017.45734-src.zip +823eb038665f70431da91058ac430ecced6d0f5fda1dde6dc583e55ea35540dafa0fe45ca54ecc17dd8438e34e057e77db0edd60eae22213d07869c7ea89b84f texlive-science-2017.45707-src.zip +795df101ccb6708cb197df3785f033140bfe47ff041a375d469826e0d6217775a40e58e7c5a752229d40bb7b3fd36a297617137089752d24b7999d2d17d15339 duplicates.txt" |