Advertisement
Guest User

acroread 9.3.2-1

a guest
Apr 29th, 2010
472
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.93 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement