mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
68 lines
2.2 KiB
Bash
68 lines
2.2 KiB
Bash
# Arch contribution https://aur4.archlinux.org/packages/rstudio-desktop/
|
|
|
|
pkgname=rstudio
|
|
_pkgname=rstudio-rstudio
|
|
pkgver=1.0.143
|
|
pkgrel=1
|
|
pkgdesc="A new integrated development environment (IDE) for R - The Desktop Client"
|
|
arch=('x86_64')
|
|
url="http://www.rstudio.org/"
|
|
license=('AGPL')
|
|
depends=('boost-libs' 'java-environment' 'qt5-base' 'qt5-declarative' 'qt5-location' 'qt5-sensors' 'qt5-svg' 'qt5-webkit' 'qt5-xmlpatterns' 'pango' 'r')
|
|
makedepends=('apache-ant' 'boost' 'bzip2' 'cmake' 'git' 'icu' 'openssl' 'pam' 'unzip' 'wget' 'libcups')
|
|
provides=('rstudio-desktop')
|
|
categories=('programming')
|
|
install=rstudio-desktop.install
|
|
source=("https://github.com/$pkgname/$pkgname/tarball/v$pkgver"
|
|
"http://www.rstudio.com/wp-content/uploads/2014/06/RStudio-Ball.png"
|
|
"rroutines-style.patch")
|
|
sha256sums=('8d597da85b007e2cdbd5c5e7e0005907c7672c2f6dd87c8481c27032f6e57705'
|
|
'b14d11376099fe27e3f355367aca779e985840ea36ec08235feca62c67bd53c3'
|
|
'b953527f46320d64425f7de257f774d7f354199b7c6a71f126ed467b6e6dd52b')
|
|
|
|
build() {
|
|
cd "$srcdir/$pkgname-$pkgname-"*
|
|
patch -p 1 -i "$srcdir/rroutines-style.patch"
|
|
|
|
cd dependencies/common
|
|
|
|
sh install-cef
|
|
sh install-dictionaries
|
|
sh install-mathjax
|
|
# ln -sfT /usr/share/mathjax mathjax-23
|
|
sh install-gwt
|
|
sh install-libclang
|
|
sh install-pandoc
|
|
sh install-packages
|
|
|
|
# Configure and build.
|
|
cd ../../
|
|
|
|
mkdir -p build
|
|
cd build
|
|
unset LDFLAGS
|
|
cmake \
|
|
-DRSTUDIO_TARGET=Desktop \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DQT_QMAKE_EXECUTABLE=/usr/bin/qmake-qt5 \
|
|
-DCMAKE_INSTALL_PREFIX=/usr/lib/$pkgname \
|
|
..
|
|
}
|
|
|
|
package() {
|
|
cd "$srcdir/$pkgname-$pkgname-"*/build
|
|
|
|
make DESTDIR=$pkgdir install
|
|
|
|
install -Dm644 ../COPYING "$pkgdir/usr/share/licenses/${pkgname}/COPYING"
|
|
echo "#! /bin/sh
|
|
/usr/lib/rstudio/bin/rstudio %F" > $srcdir/rstudio.sh
|
|
install -D $srcdir/rstudio.sh $pkgdir/usr/bin/rstudio
|
|
sed -i s!/usr/lib/rstudio/bin/rstudio!rstudio! \
|
|
$pkgdir/usr/share/applications/rstudio.desktop
|
|
install -D ../../RStudio-Ball.png $pkgdir/usr/share/pixmaps/rstudio.png
|
|
sed -i s!'text/x-tex;text/x-markdown;text/html;text/css;text/javascript;text/x-chdr;text/x-csrc;text/x-c++hdr;text/x-c++src;'!''! \
|
|
$pkgdir/usr/share/applications/rstudio.desktop
|
|
|
|
}
|