diff options
author | Stephen Martin | 2017-08-15 16:08:10 -0500 |
---|---|---|
committer | Stephen Martin | 2017-08-15 16:08:10 -0500 |
commit | cdf06c21c071b966c2dc83cd14f63cb796ee98e6 (patch) | |
tree | 237f024bf0b879ea0598bcedb61822e003ce978d /PKGBUILD | |
parent | df5105ea47e4d7c78ea3806d3adbb51f6504088a (diff) | |
download | aur-cdf06c21c071b966c2dc83cd14f63cb796ee98e6.tar.gz |
Fixed build error. Forcing gcc5
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 15 |
1 files changed, 11 insertions, 4 deletions
@@ -7,9 +7,9 @@ arch=('i686' 'x86_64') url="http://www.rstudio.com/shiny/server/install-opensource" license=('AGPL') depends=('r') -makedepends=('git' 'python2' 'cmake' 'r') +makedepends=('git' 'python2' 'cmake' 'r' 'gcc5') install='accounts.install' -backup=('etc/shiny-server.conf') +backup=('etc/shiny-server/shiny-server.conf') source=('shiny-server::git+https://github.com/rstudio/shiny-server.git' 'shiny-server.service') pkver(){ @@ -20,6 +20,7 @@ pkver(){ _gitroot=https://github.com/rstudio/shiny-server.git _gitname=shiny-server prepare(){ + # Vigorously force the use of python2 cd $srcdir find -type f -exec sed \ -e 's_^#!/usr/bin/env python$_&2_' \ @@ -32,18 +33,24 @@ build() { cd "$srcdir/$_gitname" mkdir tmp cd tmp + # More python2 hackery DIR=`pwd` PATH=$DIR/../bin/:$PATH ln -s `which python2` ../bin/python export _PYTHON=`which python2` - export PYTHON=`which python2` + + # Node fails with gcc7 + export CC=/bin/gcc-5 + export CXX=/bin/g++-5 + + # CMake cmake -DCMAKE_INSTALL_PREFIX=/usr -DPYTHON="$_PYTHON" ../ make mkdir ../build (cd .. && bin/npm --python="$PYTHON" install) - (cd .. && ext/node/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js --python="$PYTHON" rebuild) + (cd .. && bin/node ext/node/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js --python="$PYTHON" rebuild) } package() { |