diff options
author | Philipp A | 2015-07-03 14:04:35 +0200 |
---|---|---|
committer | Philipp A | 2015-07-03 14:04:35 +0200 |
commit | ff4a17eedf6270edf11a2cea133fd22c213c461d (patch) | |
tree | 6fde97fca6b99713af70aafeb7395c1829b476dc | |
download | aur-ff4a17eedf6270edf11a2cea133fd22c213c461d.tar.gz |
aur4 migration
-rw-r--r-- | .SRCINFO | 43 | ||||
-rw-r--r-- | PKGBUILD | 65 | ||||
-rw-r--r-- | rstudio-desktop.install | 15 |
3 files changed, 123 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..5939585c8a6f --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,43 @@ +pkgbase = rstudio-desktop + pkgdesc = Open source and enterprise-ready professional software for the R community + pkgver = 0.99.451 + pkgrel = 1 + url = http://www.rstudio.com/ + install = rstudio-desktop.install + arch = i686 + arch = x86_64 + license = AGPL + makedepends = cmake>=2.8 + makedepends = boost>=1.50 + makedepends = java-environment + makedepends = apache-ant + makedepends = openssl + makedepends = pam + depends = r>=2.11.1 + depends = boost-libs>=1.50 + depends = qt5-base + depends = qt5-webkit + depends = pango + depends = shared-mime-info + depends = mathjax + depends = pandoc + depends = clang + conflicts = rstudio-desktop-bin + conflicts = rstudio-desktop-git + conflicts = rstudio-desktop-preview-bin + replaces = rstudio-desktop-bin + replaces = rstudio-desktop-git + replaces = rstudio-desktop-preview-bin + noextract = core-dictionaries.zip + noextract = gin-1.5.zip + source = rstudio-0.99.451.tar.gz::https://github.com/rstudio/rstudio/tarball/v0.99.451 + source = https://s3.amazonaws.com/rstudio-buildtools/gin-1.5.zip + source = https://s3.amazonaws.com/rstudio-buildtools/gwt-2.7.0.zip + source = https://s3.amazonaws.com/rstudio-dictionaries/core-dictionaries.zip + sha256sums = f172d3017f3e5e34dda99e50eba6708bbf256f68177722b381b93b7fec375205 + sha256sums = f561f4eb5d5fe1cff95c881e6aed53a86e9f0de8a52863295a8600375f96ab94 + sha256sums = aa65061b73836190410720bea422eb8e787680d7bc0c2b244ae6c9a0d24747b3 + sha256sums = 4341a9630efb9dcf7f215c324136407f3b3d6003e1c96f2e5e1f9f14d5787494 + +pkgname = rstudio-desktop + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..78720fa4d0e1 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,65 @@ +# Contributor: Ben Ward <benjamin.ward@bathspa.org> +# Maintainer: Alexsandr Pavlov <kidoz at mail dot ru> +pkgname=rstudio-desktop +pkgver=0.99.451 +_gwtver=2.7.0 +_ginver=1.5 +_clangver=3.6.1 +pkgrel=1 +pkgdesc="Open source and enterprise-ready professional software for the R community" +arch=('i686' 'x86_64') +url="http://www.rstudio.com/" +license=('AGPL') +depends=('r>=2.11.1' 'boost-libs>=1.50' qt5-base qt5-webkit pango shared-mime-info mathjax pandoc clang) +makedepends=('cmake>=2.8' 'boost>=1.50' java-environment apache-ant openssl pam) +conflicts=('rstudio-desktop-bin' 'rstudio-desktop-git' 'rstudio-desktop-preview-bin') +replaces=('rstudio-desktop-bin' 'rstudio-desktop-git' 'rstudio-desktop-preview-bin') +install=rstudio-desktop.install +source=("rstudio-$pkgver.tar.gz::https://github.com/rstudio/rstudio/tarball/v$pkgver" + "https://s3.amazonaws.com/rstudio-buildtools/gin-$_ginver.zip" + "https://s3.amazonaws.com/rstudio-buildtools/gwt-$_gwtver.zip" + "https://s3.amazonaws.com/rstudio-dictionaries/core-dictionaries.zip") +noextract=('core-dictionaries.zip' + "gin-$_ginver.zip") +sha256sums=('f172d3017f3e5e34dda99e50eba6708bbf256f68177722b381b93b7fec375205' + 'f561f4eb5d5fe1cff95c881e6aed53a86e9f0de8a52863295a8600375f96ab94' + 'aa65061b73836190410720bea422eb8e787680d7bc0c2b244ae6c9a0d24747b3' + '4341a9630efb9dcf7f215c324136407f3b3d6003e1c96f2e5e1f9f14d5787494') + +_pkgname=rstudio + +build() { + cd "$srcdir/$_pkgname-$_pkgname-"* + + install -d src/gwt/lib/{gin,gwt/$_gwtver} + + cp -r "$srcdir/gwt-$_gwtver/"* "src/gwt/lib/gwt/$_gwtver" + unzip -qfod "src/gwt/lib/gin/$_ginver" "$srcdir/gin-$_ginver.zip" + + ( + cd "dependencies/common" + install -d dictionaries libclang/{3.5,builtin-headers} + + unzip -qfod "dictionaries" "$srcdir/core-dictionaries.zip" + + ln -sfT "/usr/share/mathjax" mathjax-23 + ln -sfT "/usr/bin" pandoc + ln -sfT "/usr/lib/libclang.so" libclang/3.5/libclang.so + ln -sfT "/usr/lib/clang/$_clangver/include" libclang/builtin-headers/3.5 + + bash "install-packages" + ) + + cmake -DRSTUDIO_TARGET=Desktop \ + -DCMAKE_BUILD_TYPE=Release \ + -DQT_QMAKE_EXECUTABLE=/usr/lib/qt/bin/qmake \ + -DCMAKE_INSTALL_PREFIX=/usr/lib/rstudio +} + +package() { + cd "$srcdir/$_pkgname-$_pkgname-"* + + make DESTDIR="$pkgdir/" install + + install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING" +} diff --git a/rstudio-desktop.install b/rstudio-desktop.install new file mode 100644 index 000000000000..d0192c8c0437 --- /dev/null +++ b/rstudio-desktop.install @@ -0,0 +1,15 @@ +post_install() { + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor + update-desktop-database -q + update-mime-database usr/share/mime &> /dev/null +} + +post_upgrade() { + post_install "$1" +} + +post_remove() { + post_install "$1" +} + +# vim:set ts=2 sw=2 et: |