Installing texlive docs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Hi List, 

based on this page (https://bbs.archlinux.org/viewtopic.php?pid=1253365)
I tried to build a texlive-most-doc package:

#+NAME: PKGBUILD
#+BEGIN_SRC shell  
  pkgname=texlive-most-doc
  pkgver=$(date +%Y%m%d)
  pkgrel=1
  pkgdesc="Most TeXLive documentation"
  url="http://tug.org/texlive/";;
  arch=('any')
  license=('unknown')
  optdepends=('texlive-bin: The texdoc program and some more documentation')
  makedepends=('wget')
  install=${pkgname}.install
  options=('!strip'  '!purge')

  build() {
    wget -r -l inf -N -nH -nv --cut-dirs=3 -P "$srcdir/usr/share/" ftp://tug.org/texlive/Contents/live/texmf-dist/doc
    wget -r -l inf -N -nH -nv --cut-dirs=3 -P "$srcdir/usr/share/" ftp://tug.org/texlive/Contents/live/texmf/doc/asymptote
    wget -r -l inf -N -nH -nv --cut-dirs=3 -P "$srcdir/usr/share/" ftp://tug.org/texlive/Contents/live/texmf/doc/dvipng/dvipng.pdf
    wget -r -l inf -N -nH -nv --cut-dirs=3 -P "$srcdir/usr/share/" ftp://tug.org/texlive/Contents/live/texmf/doc/dvips/dvips.pdf
    wget -r -l inf -N -nH -nv --cut-dirs=3 -P "$srcdir/usr/share/" ftp://tug.org/texlive/Contents/live/texmf/doc/man
    wget -r -l inf -N -nH -nv --cut-dirs=3 -P "$srcdir/usr/share/" ftp://tug.org/texlive/Contents/live/texmf/doc/info
    wget -r -l inf -N -nH -nv --cut-dirs=3 -P "$srcdir/usr/share/" ftp://tug.org/texlive/Contents/live/texmf/doc/tetex
    wget -r -l inf -N -nH -nv --cut-dirs=3 -P "$srcdir/usr/share/" ftp://tug.org/texlive/Contents/live/texmf/doc/texlive
    wget -r -l inf -N -nH -nv --cut-dirs=3 -P "$srcdir/usr/share/" ftp://tug.org/texlive/Contents/live/texmf/doc/texworks
    wget -r -l inf -N -nH -nv --cut-dirs=3 -P "$srcdir/usr/share/" ftp://tug.org/texlive/Contents/live/texmf/doc/web2c/web2c.pdf
    wget -r -l inf -N -nH -nv --cut-dirs=3 -P "$srcdir/usr/share/" ftp://tug.org/texlive/Contents/live/texmf/doc/ttf2pk/ttf2tfm.txt
    wget -r -l inf -N -nH -nv --cut-dirs=3 -P "$srcdir/usr/share/" ftp://tug.org/texlive/Contents/live/texmf/doc/ttf2pk/ttf2pk.txt
  }

  package() {
    cp -rl "$srcdir"/* "$pkgdir"
  }
#+END_SRC

#+NAME: texlive-most-doc.install
#+BEGIN_SRC shell
post_install() {
  texhash
}

post_remove() {
  texhash
}

post_upgrade() {
  texhash
}
#+END_SRC

and ended up with this directory structure:

,----
| /home/tj/abs/texlive-most-doc:
| insgesamt 24
| drwxr-xr-x 4 tj tj 4096 31. Aug 03:20 .
| drwxr-xr-x 9 tj tj 4096 31. Aug 03:07 ..
| d--------- 2 tj tj 4096 31. Aug 03:20 pkg
| -rw-r--r-- 1 tj tj 1835 31. Aug 03:15 PKGBUILD
| drwxr-xr-x 3 tj tj 4096 31. Aug 03:20 src
| -rw-r--r-- 1 tj tj   88 31. Aug 03:10 texlive-most-doc.install
`----

and this error message (translated from German):

,----
| END --2014-08-31 06:55:01--
| TIME: 3h 34m 12s
| DOWNLOADED: 31502 files, 1,5G in 50m 24s (516 KB/s)
| Directory »»texlive/Contents/live/texmf/doc«« does not exist
| 
| ==> ERROR: Error in build().
|     Aborting ...
`----

Now I have all the texlive doc files in /abs/texlive-most-doc/src, but
not a package I can install via pacman -U, so I'm not quite sure how
to proceed. 

Any hints would be welcome. 

-- 
cheers,
Thorsten


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux