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

acroread 9.3.2-1

By: a guest on Apr 29th, 2010  |  syntax: Bash  |  size: 1.93 KB  |  views: 418  |  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 gmail com>
  2. # Contributor: Jose Valecillos <valecillosjg (at) gmail (dot) com>
  3.  
  4. pkgname=acroread
  5. pkgver=9.3.2
  6. pkgrel=1
  7. pkgdesc="Adobe Reader is a PDF file viewer"
  8. arch=('i686')
  9. url="http://www.adobe.com/products/reader/"
  10. license=('custom')
  11. depends=('gtk2' 'mesa' 'desktop-file-utils')
  12. options=('!strip')
  13. install=acroread.install
  14. source=(ftp://ftp.adobe.com/pub/adobe/reader/unix/9.x/$pkgver/enu/AdbeRdr$pkgver-1_i486linux_enu.tar.bz2)
  15. md5sums=('57c6e2f628b34dc950f834e10f553504')
  16.  
  17. build() {
  18.   cd "$srcdir/AdobeReader"
  19.   bsdtar -xf COMMON.TAR || return 1
  20.   bsdtar -xf ILINXR.TAR || return 1
  21.   cd Adobe/Reader9
  22.  
  23.   msg2 "Installing Main Files..."
  24.   mkdir -p "$pkgdir/usr/lib/acroread" || return 1
  25.   cp -a * "$pkgdir/usr/lib/acroread" || return 1
  26.   echo done
  27.  
  28.   msg2 "Installing Bin Files..."
  29.   mkdir -p "$pkgdir/usr/bin" || return 1
  30.   ln -s /usr/lib/acroread/bin/acroread "$pkgdir/usr/bin" || return 1
  31.   install -Dm644 Resource/Shell/acroread.1.gz ${pkgdir}/usr/share/man/man1/acroread.1.gz || return 1
  32.   install -Dm644 Resource/Shell/acroread_tab ${pkgdir}/etc/bash_completion.d/acroread || return 1
  33.   echo done
  34.  
  35.   msg2 "Installing Broswer Plugin..."
  36.   mkdir -p "$pkgdir/usr/lib/mozilla/plugins" || return 1
  37.   ln -s /usr/lib/acroread/Browser/intellinux/nppdf.so "$pkgdir/usr/lib/mozilla/plugins" || return 1
  38.   echo done
  39.    
  40.   msg2 "Installing Icon Resource..."
  41.   install -D -m644 Resource/Support/AdobeReader.desktop \
  42.     "$pkgdir/usr/share/applications/acroread.desktop" || return 1
  43.   sed -i 's|AdobeReader9.png|acroread|' \
  44.     "$pkgdir/usr/share/applications/acroread.desktop" || return 1
  45.   install -D -m644 Resource/Icons/64x64/AdobeReader9.png \
  46.     "$pkgdir/usr/share/pixmaps/acroread.png" || return 1
  47.   echo done
  48.  
  49.   msg2 "Installing License..."
  50.   install -D -m644 Reader/Legal/en_US/License.txt \
  51.     "$pkgdir/usr/share/licenses/acroread/License.txt" || return 1
  52.   echo done
  53. }