aur4 migration

This commit is contained in:
Philipp A 2015-07-03 14:04:35 +02:00
commit ff4a17eedf
3 changed files with 123 additions and 0 deletions

43
.SRCINFO Normal file
View file

@ -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

65
PKGBUILD Normal file
View file

@ -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"
}

15
rstudio-desktop.install Normal file
View file

@ -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: