Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

phantomjs PKGBUILD

By: Marcel- on Nov 5th, 2012  |  syntax: Bash  |  size: 1.08 KB  |  hits: 53  |  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: grimsock <lord.grimsock at gmail dot com>
  2. # Contributor: Dieter Plaetinck <dieter@plaetinck.be>
  3. # Contributor: Vladimir Chizhov <jagoterr@gmail.com>
  4. # Contributor: Henry Tang <henryykt@gmail.com>
  5.  
  6. pkgname=phantomjs
  7. pkgver=1.7.0
  8. pkgrel=1
  9. pkgdesc="Headless WebKit with JavaScript API"
  10. url="http://www.phantomjs.org/"
  11. license=("BSD")
  12. arch=('i686' 'x86_64')
  13. makedepends=('unzip')
  14. source=("http://phantomjs.googlecode.com/files/${pkgname}-${pkgver}-source.zip")
  15. noextract=("${pkgname}-${pkgver}-source.zip")
  16. md5sums=('f2cf1d9e98dfb84c159748d34dea5f82')
  17.  
  18. build() {
  19.   # workaround for https://code.google.com/p/libarchive/issues/detail?id=271
  20.   # cd $srcdir/$pkgname-$pkgver
  21.   unzip ${pkgname}-${pkgver}-source.zip
  22.   cd $pkgname-$pkgver
  23.   # workaround for http://code.google.com/p/phantomjs/issues/detail?id=635
  24.   sed -i 's/QMAKE_LFLAGS+=-fuse-ld=gold/#QMAKE_LFLAGS+=-fuse-ld=gold/' src/qt/src/3rdparty/webkit/Source/common.pri
  25.  ./build.sh
  26. }
  27.  
  28. package() {
  29.   mkdir -p "$pkgdir/usr/bin/"
  30.   install -D -m755 "$srcdir/$pkgname-$pkgver/bin/phantomjs" "$pkgdir/usr/bin/"
  31. }