diff options
author | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-01-12 03:39:46 +0000 |
---|---|---|
committer | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-01-12 03:39:46 +0000 |
commit | 61e090957dbc6b062f3a1af7eeb0d58478c6657d (patch) | |
tree | 768f076ead75d57e34580da0d78ff9f5afe170fd /libre/texlive-latexextra-libre | |
parent | b8322aaddc0dc6b249457dd19ab7fb246b92c997 (diff) |
Sun Jan 12 03:35:50 UTC 2014
Diffstat (limited to 'libre/texlive-latexextra-libre')
-rw-r--r-- | libre/texlive-latexextra-libre/PKGBUILD | 23 |
1 files 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 |