From 8763238e97d0c62ea0f684113e7619d105a07a28 Mon Sep 17 00:00:00 2001 From: André Fabian Silva Delgado Date: Sat, 11 Jan 2014 04:53:26 -0200 Subject: texlive-latexextra-libre: add mksource --- libre/texlive-latexextra-libre/PKGBUILD | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/libre/texlive-latexextra-libre/PKGBUILD b/libre/texlive-latexextra-libre/PKGBUILD index ba22b53be..dce3903aa 100644 --- a/libre/texlive-latexextra-libre/PKGBUILD +++ b/libre/texlive-latexextra-libre/PKGBUILD @@ -25,29 +25,42 @@ replaces=('texlive-latexextra') conflicts=('texlive-latexextra') groups=('texlive-most') url='http://tug.org/texlive/' -source=("ftp://ftp.archlinux.org/other/texlive/$_pkgname-$pkgver-src.zip" "$_pkgname.maps") +mksource=("ftp://ftp.archlinux.org/other/texlive/$_pkgname-$pkgver-src.zip") +noextract=("$_pkgname-$pkgver-src.zip") +source=("https://repo.parabolagnulinux.org/sources/$pkgname-$pkgver-src.tar.xz" "$_pkgname.maps") options=('!emptydirs') options=(!strip) install=texlive.install -md5sums=('7c9755ca4e104089fab816d805990f6f' +mkmd5sums=('7c9755ca4e104089fab816d805990f6f') +md5sums=('7e6ff7b61faf268fe2b814c4949ab364' '9e4825f47dac663dd62c4bfa67899e84') -build() { +mksource() { + mkdir $_pkgname-$pkgver + pushd $_pkgname-$pkgver + bsdtar xfv ../$_pkgname-$pkgver-src.zip + # remove nonfree packages # No specific free license. - rm {authoraftertitle,clock,fnpara}.tar.xz + rm -v {authoraftertitle,clock,fnpara}.tar.xz # Remove them from package list. sed -ri '/^(authoraftertitle|fnpara) /d' CONTENTS + + popd +} +build() { + cd $srcdir/$_pkgname-$pkgver for p in *.tar.xz; do bsdtar -xf $p done rm -rf {tlpkg,doc,source} || true } 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 $_pkgname.maps "$pkgdir"/var/lib/texmf/arch/installedpkgs/ + 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 -- cgit v1.2.3-54-g00ecf