Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# Maintainer: Franklyn Tackitt <franklyn@tackitt.net>
pkgname=v8-3.14-bin
_ver=3.14.5
pkgver=$_ver.8
pkgrel=1
pkgdesc="v8 3.14 binary package from ubuntu xenial"
url="https://github.com/v8/v8"
arch=('i686' 'x86_64')
license=('BSD new')
conflicts=('v8-3.14')
provides=('v8-3.14')
source_i686=("http://mirrors.kernel.org/ubuntu/pool/universe/libv/libv8-3.14/libv8-${_ver}_$pkgver-5ubuntu2_i386.deb"
"http://mirrors.kernel.org/ubuntu/pool/universe/libv/libv8-3.14/libv8-3.14-dev_$pkgver-5ubuntu2_i386.deb")
source_x86_64=("http://mirrors.kernel.org/ubuntu/pool/universe/libv/libv8-3.14/libv8-${_ver}_$pkgver-5ubuntu2_amd64.deb"
"http://mirrors.kernel.org/ubuntu/pool/universe/libv/libv8-3.14/libv8-3.14-dev_$pkgver-5ubuntu2_amd64.deb")
md5sums_i686=('e773e65367409dc2a737443e2dbfe954'
'875080d5ff303d805065dda37fe3bf85')
md5sums_x86_64=('3937ddaf045f8c5606b6c505bf0779f8'
'4d2581a59a09677580d12df87629dc41')
noextract=("${source[@]##*/}")
package() {
ar p "libv8-${_ver}_$pkgver-5ubuntu2_"*.deb data.tar.xz | tar -Jx
ar p "libv8-3.14-dev_$pkgver-5ubuntu2_"*.deb data.tar.xz | tar -Jx
install -Dm755 "$srcdir/usr/lib/libv8.so" "$pkgdir/usr/lib/libv8.so"
install -Dm755 "$srcdir/usr/lib/libv8.so.$_ver" "$pkgdir/usr/lib/libv8.so.$_ver"
for header in -debug -preparser -profiler -testing '' stdint; do
install -Dm644 "$srcdir/usr/include/v8$header.h" "$pkgdir/usr/include/v8$header.h"
done
install -Dm644 "$srcdir/usr/share/doc/libv8-$_ver/AUTHORS" "$pkgdir/usr/share/doc/libv8-$_ver/AUTHORS"
install -Dm644 "$srcdir/usr/share/doc/libv8-$_ver/copyright" "$pkgdir/usr/share/doc/libv8-$_ver/copyright"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.