[arch-commits] Commit in phantomjs/repos (4 files)

Felix Yan fyan at nymeria.archlinux.org
Fri Jun 7 11:18:15 UTC 2013


    Date: Friday, June 7, 2013 @ 13:18:15
  Author: fyan
Revision: 92506

archrelease: copy trunk to community-i686, community-x86_64

Added:
  phantomjs/repos/community-i686/
  phantomjs/repos/community-i686/PKGBUILD
    (from rev 92505, phantomjs/trunk/PKGBUILD)
  phantomjs/repos/community-x86_64/
  phantomjs/repos/community-x86_64/PKGBUILD
    (from rev 92505, phantomjs/trunk/PKGBUILD)

---------------------------+
 community-i686/PKGBUILD   |   42 ++++++++++++++++++++++++++++++++++++++++++
 community-x86_64/PKGBUILD |   42 ++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 84 insertions(+)

Copied: phantomjs/repos/community-i686/PKGBUILD (from rev 92505, phantomjs/trunk/PKGBUILD)
===================================================================
--- community-i686/PKGBUILD	                        (rev 0)
+++ community-i686/PKGBUILD	2013-06-07 11:18:15 UTC (rev 92506)
@@ -0,0 +1,42 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at gmail.com>
+# Contributor: grimsock <lord.grimsock at gmail dot com>
+# Contributor: Dieter Plaetinck <dieter at plaetinck.be>
+# Contributor: Vladimir Chizhov <jagoterr at gmail.com>
+# Contributor: Henry Tang <henryykt at gmail.com>
+
+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"
+}
+

Copied: phantomjs/repos/community-x86_64/PKGBUILD (from rev 92505, phantomjs/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2013-06-07 11:18:15 UTC (rev 92506)
@@ -0,0 +1,42 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at gmail.com>
+# Contributor: grimsock <lord.grimsock at gmail dot com>
+# Contributor: Dieter Plaetinck <dieter at plaetinck.be>
+# Contributor: Vladimir Chizhov <jagoterr at gmail.com>
+# Contributor: Henry Tang <henryykt at gmail.com>
+
+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"
+}
+




More information about the arch-commits mailing list