diff options
Diffstat (limited to 'development/rstudio-desktop/rstudio-desktop.SlackBuild')
-rw-r--r-- | development/rstudio-desktop/rstudio-desktop.SlackBuild | 27 |
1 files changed, 12 insertions, 15 deletions
diff --git a/development/rstudio-desktop/rstudio-desktop.SlackBuild b/development/rstudio-desktop/rstudio-desktop.SlackBuild index f964a85a5c..29619a59ae 100644 --- a/development/rstudio-desktop/rstudio-desktop.SlackBuild +++ b/development/rstudio-desktop/rstudio-desktop.SlackBuild @@ -22,9 +22,9 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -SRCNAM=rstudio PRGNAM=rstudio-desktop -VERSION=${VERSION:-1.1.423} +SRCNAM=rstudio +VERSION=${VERSION:-1.1.442} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -41,22 +41,13 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i586" ]; then - SLKCFLAGS="-O2 -march=i86 -mtune=i686" - LIBDIRSUFFIX="" - PACKAGESUFFIX="i386" -elif [ "$ARCH" = "i686" ]; then - SLKCFLAGS="-O2 -march=i686 -mtune=i686" - LIBDIRSUFFIX="" +if [ "$ARCH" = "i586" ] || [ "$ARCH" = "i686" ]; then PACKAGESUFFIX="i386" elif [ "$ARCH" = "x86_64" ]; then - SLKCFLAGS="-O2 -fPIC" - LIBDIRSUFFIX="64" PACKAGESUFFIX="amd64" else - SLKCFLAGS="-O2" - LIBDIRSUFFIX="" - PACKAGESUFFIX="i386" + echo "$ARCH is not supported." >&2 + exit 1 fi set -e @@ -71,7 +62,7 @@ find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ -o -perm 511 \) -exec chmod 755 {} \; -o \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true @@ -81,7 +72,13 @@ rm -f $PKG/control.tar.gz rm -r $PKG/data.tar.gz rm -f $PKG/debian-binary +mkdir -p $PKG/usr/bin +ln -sf /usr/lib/rstudio/bin/rstudio $PKG/usr/bin + mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a \ + $PKG/usr/lib/rstudio/{COPYING,INSTALL,NOTICE,README.md,SOURCE} \ + $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |