blob: cdc2386eb0b347d9891fa5f1689496d5e555d21e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
# Submitter: chendaniely
#
# Maintainer: chendaniely <chendaniely@gmail.com>
# code adapted from: Meow < a.li.devtty at gmail dot com >
#
# Previous maintainer(s)
# Maintainer: pat-s <patrick.schratz@gmail.com>
#######################
pkgname=rstudio-desktop-daily-bin
pkgver=2021.12.0.daily+118
pkgver_url=2021.12.0-daily%2B118
pkgrel=1
pkgdesc="An integrated development environment (IDE) for R (binary version from RStudio official repository)"
arch=('x86_64')
license=('GPL')
url="http://www.rstudio.org/"
depends=('r' 'hicolor-icon-theme' 'libxcomposite' 'libxslt' 'shared-mime-info' 'libxrandr' 'openssl-1.0' 'postgresql-libs')
#makedepends=('patchelf')
optdepends=('pandoc: markdown support'
'pandoc-citeproc: markdown support')
conflicts=('rstudio-desktop' 'rstudio-desktop-git' 'rstudio-desktop-bin')
provides=("rstudio-desktop-daily=${pkgver}")
options=(!strip)
sha256sums_x86_64=('d5764203768013c3917ae5b1609c27e0fe92a593f595fadad33c59c4b8bb465f')
source_x86_64=("https://s3.amazonaws.com/rstudio-ide-build/desktop/bionic/amd64/rstudio-${pkgver_url}-amd64.deb")
package() {
shopt -s extglob
msg "Converting debian package..."
ar x rstudio-${pkgver_url}-amd64.deb
cd "$srcdir"
tar Jxf data.tar.xz -C "$pkgdir"
install -dm755 "$pkgdir/usr/bin"
cd "$pkgdir/usr/lib/rstudio/bin/pandoc"
ln -sf /usr/bin/pandoc ./
ln -sf /usr/bin/pandoc-citeproc ./
find "$pkgdir/usr" -type d -print0 | xargs -0 chmod 755
find "$pkgdir/usr" -type f -name '*.so.*' -print0 | xargs -0 chmod 644
cd "$pkgdir/usr/bin"
echo '#!/bin/sh
export QT_DIR=/usr/lib/rstudio/bin
export QT_PLUGIN_PATH=$QT_DIR/plugins
export QT_QPA_PLATFORM_PLUGIN_PATH=$QT_PLUGIN_PATH/platforms
export KDEDIRS=/usr
exec /usr/lib/rstudio/bin/rstudio "$@"
' > "$pkgdir/usr/bin/rstudio-daily-bin"
chmod 755 "$pkgdir/usr/bin/rstudio-daily-bin"
sed -i 's|/usr/lib/rstudio/bin/rstudio|/usr/bin/rstudio-daily-bin|' "$pkgdir/usr/share/applications/rstudio.desktop"
}
|