Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
executable file 38 lines (27 sloc) 747 Bytes
#! /bin/bash
PKG=rstudio
VERSION=1.2.5019
BUILD=1
QTPKG=/pkg/qt-5.12.7-0
PREFIX=/pkg/$PKG-$VERSION-$BUILD
OLDPREFIX=/pkg/$PKG-$VERSION-0
if [ -n "$TESTING" ]; then PREFIX=/dev/shm/$PKG-$VERSION-$BUILD ; fi
set -xe
umask 022
mkdir -p $PREFIX
cat >$PREFIX/profile <<-EOF
PATH=$PREFIX/bin:\$PATH:/usr/local/package/bin
if [ -d $PREFIX/.compatlibs ]; then export LD_LIBRARY_PATH=$PREFIX/.compatlibs\${LD_LIBRARY_PATH:+:}\$LD_LIBRARY_PATH ; fi
EOF
. $PREFIX/profile
# salvage the former build
cd $OLDPREFIX
cp -a R bin resources www www-symbolmaps $PREFIX
mkdir -p $PREFIX/doc
cp -a [A-Z]?* $PREFIX/doc
# fix rpath
cd $PREFIX/bin
for BINARY in diagnostics rpostback rsession rstudio; do
patchelf --set-rpath $QTPKG/lib $BINARY
done
exit