public
Created

qt5-qtjsbackend-git

  • Download Gist
gistfile1.sh
Shell
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
# Maintainer: Anselmo L. S. Melo <anselmolsm@gmail.com>
 
pkgname=qt5-qtjsbackend-git
pkgver=20120608
pkgrel=1
pkgdesc="Qt 5: qtjsbackend module (includes QtV8)"
arch=('i686' 'x86_64')
url="https://qt.gitorious.org/qt/qtjsbackend"
license=('LGPL')
depends=()
makedepends=('gcc' 'git' 'qt5-qtbase-git')
source=()
md5sums=()
 
_gitroot="git://gitorious.org/qt/qtjsbackend.git"
_gitname=qt5-qtjsbackend
 
build() {
cd "${srcdir}"
 
if [ ! -d "${srcdir}/${_gitname}" ]; then
git clone ${_gitroot} ${_gitname}
else
cd ${_gitname} && git pull origin
fi
 
msg "GIT checkout done."
 
cd "${srcdir}"
cp -rf "${_gitname}" "${_gitname}-build"
cd "${_gitname}-build"
/opt/qt5/bin/qmake
_x=src/3rdparty/v8/src/profile-generator.cc
sed -i $_x -e 's/#define JSON_A(s) "\["s"\]"/#define JSON_A(s) "\[" s "\]"/'
sed -i $_x -e 's/#define JSON_O(s) "{"s"}"/#define JSON_O(s) "{" s "}"/'
sed -i $_x -e 's/#define JSON_S(s) "\\""s"\\""/#define JSON_S(s) "\\"" s "\\""/'
_x=src/3rdparty/v8/src/x64/disasm-x64.cc
sed -i $_x -e 's/"V8_PTR_PREFIX"x"/" V8_PTR_PREFIX "x"/'
make
}
 
package() {
cd "${srcdir}/${_gitname}-build"
 
make INSTALL_ROOT="${pkgdir}" install
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.