Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

acroread

By: a guest on May 19th, 2011  |  syntax: None  |  size: 2.66 KB  |  views: 258  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Contributor: Alexander Fehr <pizzapunk at gmail dot com>
  2. # Contributor: Jose Valecillos <valecillosjg at gmail dot com>
  3.  
  4. pkgname=acroread-bin
  5. pkgver=9.4.2
  6. pkgrel=1
  7. pkgdesc="A PDF file viewer."
  8. arch=('i686' 'x86_64')
  9. url="http://www.adobe.com/products/reader/"
  10. license=('custom')
  11. depends=('desktop-file-utils')
  12. conflicts=('acroread-chs'
  13.            'acroread-cht'
  14.            'acroread-de'
  15.            'acroread-es'
  16.            'acroread-fi'
  17.            'acroread-fr'
  18.            'acroread-it'
  19.            'acroread-ja'
  20.            'acroread-nl'
  21.            'acroread-ptb'
  22.            'bin32-acroread-chs'
  23.            'bin32-acroread-es'
  24.            'bin32-acroread-fr'
  25.            'bin32-acroread-it')
  26.  
  27. if [[ "$CARCH" == 'i686' ]]; then
  28.   depends+=('gtk2' 'mesa')
  29.   optdepends=('libcanberra: XDG sound support')
  30. else
  31.   depends+=('lib32'-{'gtk2','mesa','libxml2','xcb-util'})
  32.   optdepends=('lib32-libcanberra: XDG sound support')
  33. fi
  34.  
  35. options=('!strip')
  36. install=acroread.install
  37. source=(ftp://ftp.adobe.com/pub/adobe/reader/unix/9.x/${pkgver}/enu/AdbeRdr${pkgver}-1_i486linux_enu.tar.bz2)
  38. md5sums=('307aaaf22e8c08958927dfabb0f4d745')
  39.  
  40. build() {
  41.   cd "$srcdir/AdobeReader"
  42.   bsdtar -xf COMMON.TAR
  43.   bsdtar -xf ILINXR.TAR
  44. }
  45.  
  46. package() {
  47.   cd ${srcdir}/AdobeReader/Adobe/Reader9
  48.  
  49.   msg2 "Installing Main Files..."
  50.   mkdir -p "$pkgdir/opt/Adobe/Reader9"
  51.   cp -a * "$pkgdir/opt/Adobe/Reader9"
  52.   echo done
  53.  
  54.   msg2 "Installing Bin Files..."
  55.   mkdir -p "$pkgdir/usr/bin"
  56.   ln -s /opt/Adobe/Reader9/bin/acroread "$pkgdir/usr/bin"
  57.   install -Dm644 Resource/Shell/acroread.1.gz \
  58.           ${pkgdir}/usr/share/man/man1/acroread.1.gz
  59.   install -Dm644 Resource/Shell/acroread_tab \
  60.           ${pkgdir}/etc/bash_completion.d/acroread
  61.   install -Dm755 ${srcdir}/acroread.sh \
  62.           ${pkgdir}/etc/profile.d/acroread.sh
  63.   sed -i "s/_filedir/_filedir_acroread/" \
  64.           "$pkgdir/etc/bash_completion.d/acroread"
  65.   echo done
  66.  
  67.   msg2 "Installing Broswer Plugin..."
  68.   mkdir -p "$pkgdir/usr/lib/mozilla/plugins"
  69.   ln -s /opt/Adobe/Reader9/Browser/intellinux/nppdf.so \
  70.           "$pkgdir/usr/lib/mozilla/plugins"
  71.   echo done
  72.        
  73.   msg2 "Installing Icon Resource..."
  74.   install -D -m644 Resource/Support/AdobeReader.desktop \
  75.           "$pkgdir/usr/share/applications/acroread.desktop"
  76.   sed -i '/^Icon/s|AdobeReader9|acroread|' \
  77.           "$pkgdir/usr/share/applications/acroread.desktop"
  78.   install -D -m644 Resource/Icons/64x64/AdobeReader9.png \
  79.           "$pkgdir/usr/share/pixmaps/acroread.png"
  80.   echo done
  81.  
  82.   msg2 "Installing License..."
  83.   install -D -m644 Reader/Legal/en_US/License.txt \
  84.           "$pkgdir/usr/share/licenses/acroread/License.txt"
  85.   echo done
  86. }