# Maintainer (Arch): Rémy Oudompheng # Contributor (Hyperbola): André Silva # Maintainer: Michał Masłowski # Contributor: Isaac David _pkgname=texlive-fontsextra-libre pkgname=texlive-fontsextra pkgver=2017.44818 _revnr=${pkgver#2017.} pkgrel=1.parabola1 pkgdesc="TeX Live - all sorts of extra fonts, without nonfree add-on packages" license=('GPL') arch=(any) depends=('texlive-core') groups=('texlive-most') replaces=('texlive-fontsextra-libre') conflicts=('texlive-fontsextra-libre') url='http://tug.org/texlive/' mksource=("https://sources.archlinux.org/other/texlive/$pkgname-$pkgver-src.zip") noextract=("$pkgname-$pkgver-src.zip") source=("https://repo.parabola.nu/other/$_pkgname/$_pkgname-$pkgver-src.tar.xz" "$pkgname.maps") options=('!emptydirs') mksha256sums=('e6fc784cdb144f65a787d050b0f3ea7f109f3ec92cd76fc6acb180e190d715ec') sha256sums=('da08dc17f0e4d3dbe76fd4e475310b8d23780d970698265e1d32bc633e626a32' '819f8db02567480fc15717b7aded00c3fe3d61bb6dbddacf99adcdcf967d8ee3') mksource() { mkdir $pkgname-$pkgver pushd $pkgname-$pkgver bsdtar xfv ../$pkgname-$pkgver-src.zip # remove nonfree packages # no specific free license rm -v ogham.tar.xz popd } prepare() { cd $srcdir/$pkgname-$pkgver echo -n " --> extracting all packages... " for p in *.tar.xz; do bsdtar -xf $p done rm -rf {tlpkg,doc,source} || true # remove nonfree packages references from package list sed -ri '/^ogham /d' CONTENTS } package() { cd $srcdir/$pkgname-$pkgver install -m755 -d $pkgdir/var/lib/texmf/arch/installedpkgs sed -i '/^#/d' CONTENTS install -m644 CONTENTS $pkgdir/var/lib/texmf/arch/installedpkgs/${pkgname}_${_revnr}.pkgs install -m644 $srcdir/$pkgname.maps $pkgdir/var/lib/texmf/arch/installedpkgs/ install -m755 -d $pkgdir/usr/share wanteddirs=$(for d in *; do test -d $d && [[ $d != texmf* ]] && echo $d; done) || true for dir in $wanteddirs; do find $dir -type d -exec install -d -m755 $pkgdir/usr/share/texmf-dist/'{}' \; find $dir -type f -exec install -m644 '{}' $pkgdir/usr/share/texmf-dist/'{}' \; done if [[ -d texmf-dist ]]; then find texmf-dist -type d -exec install -d -m755 $pkgdir/usr/share/'{}' \; find texmf-dist -type f -exec install -m644 '{}' $pkgdir/usr/share/'{}' \; fi if [[ -d $pkgdir/usr/share/texmf-dist/scripts ]]; then find $pkgdir/usr/share/texmf-dist/scripts -type f -exec chmod a+x '{}' \; fi }