Commit 4de30923 authored by Ariadne Conill's avatar Ariadne Conill

testing/v8: new aport

parent a6645935
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=v8
pkgver=3.5.10.24
pkgrel=0
pkgdesc="V8 JavaScript/ECMAScript Engine"
url="http://www.chromium.org/"
arch="x86 x86_64 arm"
license="BSD"
depends=""
depends_dev=""
makedepends="scons"
install=""
subpackages="$pkgname-dev"
source="http://gsdview.appspot.com/chromium-browser-official/v8-$pkgver.tar.bz2"
_builddir="$srcdir"/v8-$pkgver
prepare() {
local i
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
build() {
cd "$_builddir"
v8_arch=${CARCH}
test ${CARCH} = x86_64 && v8_arch=x64
msg "building for ${v8_arch}"
export LINKFLAGS="${LDFLAGS}"
scons -j$JOBS \
library=shared \
inspector=on \
objectprint=on \
console=readline \
soname=on \
arch=${v8_arch} \
|| return 1
}
package() {
cd "$_builddir"
mkdir -p "$pkgdir"/usr/include
cp include/* "$pkgdir"/usr/include
mkdir -p "$pkgdir"/usr/lib
install -c -m755 libv8-${pkgver}.so "$pkgdir"/usr/lib/libv8-${pkgver}.so
ln -sf libv8-${pkgver}.so "$pkgdir"/usr/lib/libv8.so
}
md5sums="be8c1d88f8d120d68e8566685535ff9c v8-3.5.10.24.tar.bz2"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment