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

phantomjs-bin PKGBUILD

By: Marcel- on Nov 28th, 2012  |  syntax: Bash  |  size: 0.85 KB  |  views: 50  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Maintainer: Jochen Schalanda <jochen+aur@schalanda.name>
  2. _pkgname=phantomjs
  3. pkgname=phantomjs-bin
  4. pkgver=1.7.0
  5. pkgrel=2
  6. pkgdesc="Headless WebKit with JavaScript API (official static binary)"
  7. url="http://www.phantomjs.org/"
  8. license=("BSD")
  9. depends=('fontconfig' 'freetype2-infinality')
  10. arch=('i686' 'x86_64')
  11. conflicts=('phantomjs')
  12. provides=('phantomjs')
  13. options=('!strip')
  14. source=(
  15.         "http://phantomjs.googlecode.com/files/${_pkgname}-${pkgver}-linux-${CARCH}.tar.bz2"
  16.         )
  17. md5sums=('70defec09b2fd190e90912f2898d19c6')
  18.  
  19. [[ "$CARCH" == "i686" ]] && md5sums=('c4e3cd258f6977b75dee5560e4059167')
  20.  
  21. package() {
  22.   install -Dm755 "$srcdir/${_pkgname}-${pkgver}-linux-${CARCH}/bin/phantomjs" "$pkgdir/usr/bin/phantomjs"
  23.   install -Dm644 "$srcdir/${_pkgname}-${pkgver}-linux-${CARCH}/LICENSE.BSD" "$pkgdir/usr/share/licenses/phantomjs-bin/LICENSE.BSD"
  24. }