This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

foxitreader pkgbuild

By: Alir3z4 on Dec 13th, 2011  |  syntax: Bash  |  size: 1.59 KB  |  views: 237  |  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. # Maintainer: TDY <tdy@gmx.com>
  2. pkgname=foxitreader
  3. pkgver=1.1
  4. pkgrel=5
  5. pkgdesc="A small, fast PDF viewer"
  6. arch=('i686' 'x86_64')
  7. url="http://www.foxitsoftware.com/pdf/desklinux/"
  8. license=('custom')
  9. depends=('desktop-file-utils' 'gtk2' 'sqlite3')
  10. [[ $CARCH = x86_64 ]] && depends=('desktop-file-utils' 'lib32-gtk2' 'lib32-libxdamage' 'lib32-sqlite3')
  11. install=fr.install
  12. source=(http://cdn01.foxitsoftware.com/pub/foxit/reader/desktop/linux/1.x/1.1/enu/FoxitReader-$pkgver.0.tar.bz2
  13.         http://www.foxitsoftware.com/pdf/rd_eula.htm
  14.         fr.desktop fr-i686.launcher fr-x86_64.launcher fr.png)
  15.        
  16. md5sums=('585d2fd105a221c78e89607039f17126'
  17.          '53853cd872ac7e7fde9676c210f1a473'
  18.          '21e108c58effa2ed69c74fbbd2af1454'
  19.          'd21a323e4d729473072b50adda0ed329'
  20.          'f05f459c47269e62620a6f9cd1cc74c1'
  21.          '9dbaa8ac779463948c321fdb0d5b4725')
  22.  
  23. build() {
  24.   cd "$srcdir/$pkgver-release"
  25.   install -Dm755 FoxitReader "$pkgdir/usr/lib/$pkgname/FoxitReader"
  26.   install -Dm644 fum.fhd "$pkgdir/usr/lib/$pkgname/fum.fhd"
  27.   install -Dm644 fpdfcjk.bin "$pkgdir/usr/lib/$pkgname/fpdfcjk.bin"
  28.  
  29.   for _lng in po/*; do
  30.     install -Dm644 $_lng/FoxitReader.mo \
  31.       "$pkgdir/usr/share/locale/${_lng#*/}/LC_MESSAGES/FoxitReader.mo"
  32.   done
  33.  
  34.   install -Dm644 ../fr.png "$pkgdir/usr/share/pixmaps/$pkgname.png"
  35.   install -Dm644 ../fr.desktop "$pkgdir/usr/share/applications/$pkgname.desktop"
  36.   install -Dm644 ../rd_eula.htm "$pkgdir/usr/share/licenses/$pkgname/EULA.htm"
  37.   install -Dm755 ../fr-$CARCH.launcher "$pkgdir/usr/bin/$pkgname"
  38.   ln -sf $pkgname "$pkgdir/usr/bin/fr"
  39. }
  40.  
  41.  
clone this paste RAW Paste Data