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: a guest on May 5th, 2011  |  syntax: Bash  |  size: 1.94 KB  |  views: 324  |  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.  
  3. pkgname=foxitreader
  4. pkgver=1.1
  5. pkgrel=6
  6. pkgdesc="A small, fast PDF viewer"
  7. arch=('i686' 'x86_64')
  8. url="http://www.foxitsoftware.com/pdf/desklinux/"
  9. license=('custom')
  10. depends=('desktop-file-utils' 'gtk2' 'sqlite3')
  11. [[ $CARCH = x86_64 ]] && depends=('desktop-file-utils' 'lib32-gtk2' 'lib32-libxdamage' 'lib32-sqlite3')
  12. install=fr.install
  13. source=(http://mirrors.foxitsoftware.com/pub/foxit/reader/desktop/linux/1.x/$pkgver/enu/FoxitReader-$pkgver.0.tar.bz2
  14.         http://www.foxitsoftware.com/pdf/rd_eula.htm
  15.         fr.desktop fr.png)
  16.  
  17. build() {
  18.   cd "$srcdir/$pkgver-release"
  19.   install -Dm755 FoxitReader "$pkgdir/usr/lib/$pkgname/FoxitReader"
  20.   install -Dm644 fum.fhd "$pkgdir/usr/lib/$pkgname/fum.fhd"
  21.   install -Dm644 fpdfcjk.bin "$pkgdir/usr/lib/$pkgname/fpdfcjk.bin"
  22.  
  23.   for _lng in po/*; do
  24.     install -Dm644 $_lng/FoxitReader.mo \
  25.       "$pkgdir/usr/share/locale/${_lng#*/}/LC_MESSAGES/FoxitReader.mo"
  26.   done
  27.  
  28.   install -Dm644 ../fr.png "$pkgdir/usr/share/pixmaps/$pkgname.png"
  29.   install -Dm644 ../fr.desktop "$pkgdir/usr/share/applications/$pkgname.desktop"
  30.   install -Dm644 ../rd_eula.htm "$pkgdir/usr/share/licenses/$pkgname/EULA.htm"
  31.   if [[ $CARCH = x86_64 ]] ; then
  32.     cat > "$pkgdir/usr/bin/$pkgname" <<- __EOF__
  33.                 #!/bin/bash
  34.                 export GTK_PATH=/usr/lib32/gtk-2.0
  35.                 export GDK_PIXBUF_MODULE=/usr/lib32/config/gdk/gdk-pixbuf.loaders
  36.                 export LD_LIBRARY_PATH="/usr/lib32:$LD_LIBRARY_PATH"
  37.                 exec /usr/lib/foxitreader/FoxitReader "$@"
  38.         __EOF__
  39.   else
  40.     cat > "$pkgdir/usr/bin/$pkgname" <<- __EOF__
  41.                 #!/bin/bash
  42.                 exec /usr/lib/foxitreader/FoxitReader "$@"
  43.         __EOF__
  44.   fi
  45.   chmod a+x "$pkgdir/usr/bin/$pkgname"
  46.   install -Dm644 ../fr.launcher "$pkgdir/usr/bin/$pkgname"
  47.   ln -sf $pkgname "$pkgdir/usr/bin/fr"
  48. }
  49. md5sums=('585d2fd105a221c78e89607039f17126'
  50.          'e0ba59e3a111f402f99c2d2177d6dfa5'
  51.          '21e108c58effa2ed69c74fbbd2af1454'
  52.          '9dbaa8ac779463948c321fdb0d5b4725')
clone this paste RAW Paste Data