diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2014-01-11 04:53:26 -0200 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2014-01-11 04:53:26 -0200 |
commit | 8763238e97d0c62ea0f684113e7619d105a07a28 (patch) | |
tree | c39977b429b5686613eaa1c4843a24058f6d0ade | |
parent | 7c9279d4fd009767f67b2eebd67ade8c0d3f6d35 (diff) |
texlive-latexextra-libre: add mksource
-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 |