From 7a65a910b77ad191d69881098c47f9b0c852d92e Mon Sep 17 00:00:00 2001 From: root Date: Tue, 13 Aug 2013 01:33:19 -0700 Subject: Tue Aug 13 01:31:08 PDT 2013 --- community/phantomjs/PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 community/phantomjs/PKGBUILD (limited to 'community/phantomjs') diff --git a/community/phantomjs/PKGBUILD b/community/phantomjs/PKGBUILD new file mode 100644 index 000000000..46ba64245 --- /dev/null +++ b/community/phantomjs/PKGBUILD @@ -0,0 +1,42 @@ +# $Id: PKGBUILD 92506 2013-06-07 11:18:15Z fyan $ +# Maintainer: Felix Yan +# Contributor: grimsock +# Contributor: Dieter Plaetinck +# Contributor: Vladimir Chizhov +# Contributor: Henry Tang + +pkgname=phantomjs +pkgver=1.9.1 +pkgrel=2 +pkgdesc="Headless WebKit with JavaScript API" +url="http://www.phantomjs.org/" +license=('BSD' 'LGPL' 'MIT') +arch=('i686' 'x86_64') +depends=('gstreamer0.10-base' 'fontconfig' 'freetype2') +makedepends=('unzip') +source=("http://phantomjs.googlecode.com/files/${pkgname}-${pkgver}-source.zip") +noextract=("${pkgname}-${pkgver}-source.zip") +md5sums=('93a0043d4ff8cd83e23e9d261c93830d') + +build() { + # workaround for https://code.google.com/p/libarchive/issues/detail?id=271 + # cd $srcdir/$pkgname-$pkgver + unzip ${pkgname}-${pkgver}-source.zip + + cd $pkgname-$pkgver + # workaround for http://code.google.com/p/phantomjs/issues/detail?id=635 + sed -i 's/QMAKE_LFLAGS+=-fuse-ld=gold/#QMAKE_LFLAGS+=-fuse-ld=gold/' src/qt/src/3rdparty/webkit/Source/common.pri + + ./build.sh --confirm --qt-config "-no-rpath" +} + +package() { + install -Dm755 "$srcdir/$pkgname-$pkgver/bin/phantomjs" "$pkgdir/usr/bin/phantomjs" + + mkdir -p "$pkgdir/usr/share/$pkgname" + cp -r "$srcdir/$pkgname-$pkgver/examples" "$pkgdir/usr/share/$pkgname"/ + + install -Dm644 "$srcdir/$pkgname-$pkgver/LICENSE.BSD" "$pkgdir/usr/share/licenses/$pkgname/LICENSE.BSD" + install -Dm644 "$srcdir/$pkgname-$pkgver/third-party.txt" "$pkgdir/usr/share/licenses/$pkgname/third-party.txt" +} + -- cgit v1.2.3-54-g00ecf