Skip to content
This repository has been archived by the owner on Jan 15, 2024. It is now read-only.

Commit

Permalink
Some fixes for V8
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroen committed Apr 30, 2021
1 parent 9d33c5e commit a6148f1
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 38 deletions.
20 changes: 4 additions & 16 deletions mingw-w64-v8/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ source=("bare-clones/gn::git+https://gn.googlesource.com/gn#tag=5da62d5e9d0f10cb
"0002-gn-ninja-deletes-objs-workaround.patch"
"icu.gn"
"zlib.gn"
"v8_libbase.pc"
"v8_libplatform.pc"
"v8.pc"
"https://github.com/v8/v8/commit/6930df0.patch")
sha256sums=('SKIP'
Expand All @@ -40,9 +38,7 @@ sha256sums=('SKIP'
'b831576af25b275fca72851ec275c9d21bee0be29b4eb973a3e2a2580deac003'
'c10169e7a34e212b1a2bf0eaf45131485719f32a7c34d9a666b692f05a2aa830'
'b99874ea904724911528a5530c14f3051c358805bd36df9d205df31458ebf8b9'
'fbddbe4849b623afb320472aab316c9a08b54182161b6b4911cb7ef7d65e2b0e'
'ca81528892f0e02fe7ecd159568610221fb8d0df109d9d0dbdfa00c1284dd0fc'
'579e199a798ff76b72a5b17380a3cd09d361cb7cee99403090c3a266d1b2e527'
'SKIP'
'SKIP')
options=('strip' 'staticlibs')

Expand Down Expand Up @@ -94,14 +90,6 @@ prepare() {
;;
esac

sed "s/@VERSION@/$pkgver/g" -i "$srcdir/v8_libbase.pc"
sed "s/@CFLAGS@/$_cflags/g" -i "$srcdir/v8_libbase.pc"
sed "s|^prefix=.*|prefix=${MINGW_PREFIX}|g" -i "$srcdir/v8_libbase.pc"

sed "s/@VERSION@/$pkgver/g" -i "$srcdir/v8_libplatform.pc"
sed "s/@CFLAGS@/$_cflags/g" -i "$srcdir/v8_libplatform.pc"
sed "s|^prefix=.*|prefix=${MINGW_PREFIX}|g" -i "$srcdir/v8_libplatform.pc"

sed "s/@VERSION@/$pkgver/g" -i "$srcdir/v8.pc"
sed "s/@CFLAGS@/$_cflags/g" -i "$srcdir/v8.pc"
sed "s|^prefix=.*|prefix=${MINGW_PREFIX}|g" -i "$srcdir/v8.pc"
Expand Down Expand Up @@ -148,11 +136,11 @@ package() {
install -Dm644 include/libplatform/*.h "$pkgdir"/${MINGW_PREFIX}/include/libplatform

install -d "$pkgdir"/${MINGW_PREFIX}/lib/pkgconfig
install -m644 "$srcdir/v8_libbase.pc" "$pkgdir"/${MINGW_PREFIX}/lib/pkgconfig/
install -m644 "$srcdir/v8_libplatform.pc" "$pkgdir"/${MINGW_PREFIX}/lib/pkgconfig/
install -m644 "$srcdir/v8.pc" "$pkgdir"/${MINGW_PREFIX}/lib/pkgconfig/

install -d "$pkgdir"/${MINGW_PREFIX}/share/licenses/v8
install -m644 LICENSE* "$pkgdir"/${MINGW_PREFIX}/share/licenses/v8
}

# Jeroen: fix annoying warning
sed -i 's/#if V8_HAS_CPP_ATTRIBUTE_NODISCARD/#if 0/' "$pkgdir"/${MINGW_PREFIX}/include/v8config.h
}
4 changes: 2 additions & 2 deletions mingw-w64-v8/v8.pc
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ includedir=${prefix}/include
Name: v8
Description: V8 JavaScript Engine
Version: @VERSION@
Requires: zlib, icu-uc, icu-i18n, v8_libbase = @VERSION@
Libs: -L${libdir} -lv8
Requires: zlib
Libs: -L${libdir} -lv8_monolith
Cflags: -I${includedir} @CFLAGS@
10 changes: 0 additions & 10 deletions mingw-w64-v8/v8_libbase.pc

This file was deleted.

10 changes: 0 additions & 10 deletions mingw-w64-v8/v8_libplatform.pc

This file was deleted.

0 comments on commit a6148f1

Please sign in to comment.