mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-25 02:52:13 +08:00
53 lines
1.4 KiB
Bash
53 lines
1.4 KiB
Bash
#
|
|
# Apps Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
|
|
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
|
|
|
|
pkgname=rstudio
|
|
_pkgname=rstudio-rstudio
|
|
pkgver=0.95.110
|
|
_pkgver=bbadd49
|
|
pkgrel=1
|
|
pkgdesc="A new integrated development environment (IDE) for R - The Desktop Client"
|
|
arch=('i686' 'x86_64')
|
|
url="http://www.rstudio.org/"
|
|
license=('AGPL')
|
|
depends=('boost-libs' 'java-environment' 'qt' 'r')
|
|
makedepends=('apache-ant' 'boost' 'bzip2' 'cmake' 'git' 'icu' 'openssl' 'pam' 'unzip')
|
|
provides=('rstudio-desktop')
|
|
categories=('programming')
|
|
source=("https://github.com/$pkgname/$pkgname/tarball/v$pkgver" 'cmakelists.diff')
|
|
md5sums=('813991c03a842ed97339fea80ee7b56e'
|
|
'0dcfba94a8cdfd02c3eb92c3c70203e2')
|
|
|
|
build() {
|
|
cd $srcdir/$_pkgname-$_pkgver
|
|
patch -Np1 -i "$srcdir/cmakelists.diff"
|
|
source /etc/profile.d/apache-ant.sh
|
|
#Checking for ANT and Java can be found.
|
|
which ant > /dev/null
|
|
which java > /dev/null
|
|
|
|
# Install gwt
|
|
cd $srcdir/$_pkgname-$_pkgver/dependencies/common
|
|
./install-gwt
|
|
|
|
# Configure and build.
|
|
cd $srcdir/$_pkgname-$_pkgver
|
|
|
|
mkdir build
|
|
cd build
|
|
unset LDFLAGS
|
|
cmake \
|
|
-DRSTUDIO_TARGET=Desktop \
|
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
|
-DCMAKE_INSTALL_PREFIX=/usr/local/lib/$pkgname \
|
|
..
|
|
}
|
|
|
|
package() {
|
|
cd $srcdir/$_pkgname-$_pkgver/build
|
|
make DESTDIR=$pkgdir install
|
|
}
|