mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 10:32:13 +08:00
52 lines
1.7 KiB
Bash
52 lines
1.7 KiB
Bash
pkgname=rstudio
|
|
_pkgname=rstudio-rstudio
|
|
pkgver=0.98.1103
|
|
_pkgver=1c6c7bd
|
|
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' 'qtwebkit' 'r')
|
|
makedepends=('apache-ant' 'boost' 'bzip2' 'cmake' 'git' 'icu' 'openssl' 'pam' 'unzip' 'wget' 'libcups')
|
|
provides=('rstudio-desktop')
|
|
categories=('programming')
|
|
source=("https://github.com/$pkgname/$pkgname/tarball/v$pkgver"
|
|
"http://www.rstudio.com/wp-content/uploads/2014/06/RStudio-Ball.png")
|
|
sha512sums=('a57fc273b22f5aae7972d2357a23e6f1a81735d91740abcbef49538ea404cf429d737ea09a1fc8f5043487410aef455d9898cae450a7deef71937ce59cd1062d'
|
|
'c045e7efa05c57fa04d2a3cfce4222d3b34309822b0be8ebb89b11fb800cfe711f41c01c567e1075a570d0f569cfb82b62fc9080a9fa312e8b596c499e4c5663')
|
|
|
|
build() {
|
|
cd $srcdir/$_pkgname-$_pkgver/dependencies/common
|
|
sh install-gwt
|
|
sh install-dictionaries
|
|
sh install-mathjax
|
|
sh install-pandoc
|
|
sh install-packages
|
|
|
|
# Configure and build.
|
|
cd $srcdir/$_pkgname-$_pkgver
|
|
|
|
mkdir -p build
|
|
cd build
|
|
unset LDFLAGS
|
|
cmake \
|
|
-DRSTUDIO_TARGET=Desktop \
|
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
|
-DCMAKE_INSTALL_PREFIX=/usr/lib/$pkgname \
|
|
..
|
|
}
|
|
|
|
package() {
|
|
cd $srcdir/$_pkgname-$_pkgver/build
|
|
make DESTDIR=$pkgdir install
|
|
|
|
install -Dm644 ../COPYING "$pkgdir/usr/share/licenses/${pkgname}/COPYING"
|
|
echo "#! /bin/sh
|
|
exec /usr/lib/rstudio/bin/rstudio" > $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
|
|
|
|
} |