diff options
Diffstat (limited to 'community/v8')
-rw-r--r-- | community/v8/PKGBUILD | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/community/v8/PKGBUILD b/community/v8/PKGBUILD index 0aa79df28..039c2061e 100644 --- a/community/v8/PKGBUILD +++ b/community/v8/PKGBUILD @@ -1,22 +1,22 @@ -# $Id: PKGBUILD 69009 2012-04-07 21:25:28Z kchen $ +# $Id: PKGBUILD 75499 2012-08-26 09:56:04Z jelle $ # Maintainer: Kaiting Chen <kaitocracy@gmail.com> # Contributor: tocer <tocer.deng@gmail.com> pkgname=v8 -pkgver=3.9.9 +pkgver=3.13.0 pkgrel=1 pkgdesc='A fast and modern javascript engine' arch=('i686' 'x86_64' 'mips64el') url='http://code.google.com/p/v8' license=('BSD') depends=('gcc-libs') -makedepends=('subversion' 'scons') +makedepends=('scons') +source=("v8.tar.gz::https://github.com/v8/v8/tarball/$pkgver") +md5sums=('55878a54d5dc5674a5ade223d55965f6') build() { - _source="http://v8.googlecode.com/svn/tags/${pkgver}" - svn checkout "$_source" "${srcdir}/v8-${pkgver}" - cd "${srcdir}/${pkgname}-${pkgver}" + cd $srcdir/$pkgname-$pkgname-* [ "$CARCH" = 'i686' ] && SCONS_ARCH=ia32 [ "$CARCH" = 'x86_64' ] && SCONS_ARCH=x64 @@ -24,13 +24,18 @@ build() { scons mode=release library=shared arch=$SCONS_ARCH scons d8 arch=$SCONS_ARCH - find include -type f \ - -exec install -Dm644 {} ${pkgdir}/usr/{} \; - rm -rf ${pkgdir}/usr/include/.svn +} + +package() { + cd ${srcdir}/${pkgname}-$pkgname-* install -Dm755 d8 "${pkgdir}/usr/bin/d8" install -Dm755 libv8.so "${pkgdir}/usr/lib/libv8.so" + # Include headers + install -d $pkgdir/usr/include + install -Dm755 include/*.h $pkgdir/usr/include + install -d ${pkgdir}/usr/share/licenses/v8 install -m644 LICENSE* ${pkgdir}/usr/share/licenses/v8 } |