Advertisement
Guest User

mupdf-git

a guest
Mar 20th, 2012
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.59 KB | None | 0 0
  1. # Maintainer: Army <uli armbruster who uses the google mail service>
  2.  
  3. pkgname=mupdf-git
  4. pkgver=20120320
  5. pkgrel=2
  6. pkgdesc="lightweight PDF viewer and toolkit written in portable C"
  7. arch=('i686' 'x86_64')
  8. url="http://mupdf.com"
  9. license=(GPL3)
  10. depends=('libxext' 'desktop-file-utils')
  11. makedepends=('git')
  12. provides=('mupdf')
  13. conflicts=('mupdf')
  14. source=("http://www.mupdf.com/download/mupdf-thirdparty.zip")
  15. md5sums=('d30f1ecfd812aedcfa9305f621d3cb51')
  16. install=mupdf-git.install
  17.  
  18. _gitroot="git://git.ghostscript.com/mupdf.git"
  19. _gitname="mupdf"
  20.  
  21. build() {
  22.         cd "$srcdir"
  23.         msg "Connecting to GIT server...."
  24.  
  25.         if [ -d ${_gitname} ] ; then
  26.                 cd ${_gitname} && git pull
  27.                 msg "The local files are updated."
  28.         else
  29.                 git clone ${_gitroot} ${_gitname}
  30.         fi
  31.         msg "GIT checkout done or server timeout"
  32.  
  33.         rm -rf "${srcdir}/${_gitname}-build"
  34.         cp -a "${srcdir}/${_gitname}" "${srcdir}/${_gitname}-build"
  35.  
  36.         # Copy required 3rd party libraries into build directory
  37.         cp -a "${srcdir}/thirdparty" "${srcdir}/${_gitname}-build/"
  38. }
  39.  
  40. package() {
  41.         cd "${srcdir}/${_gitname}-build"
  42.         make build=release prefix="${pkgdir}/usr" install
  43.  
  44.         cd "$srcdir/${_gitname}-build/debian"
  45.         install -Dm644 mupdf.desktop "${pkgdir}/usr/share/applications/mupdf.desktop"
  46.         install -Dm644 mupdf.xpm "${pkgdir}/usr/share/pixmaps/mupdf.xpm"
  47.  
  48.         # apparently an upstream bug, namcap doesn't like it
  49.         cd "${pkgdir}/usr/lib"
  50.         for i in *;do   chmod -x "$i";done
  51. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement