Skip to content

Instantly share code, notes, and snippets.

@cbrnr
Last active December 31, 2024 10:02
Show Gist options
  • Save cbrnr/9bad76d97ff17e37980cf40416fc5596 to your computer and use it in GitHub Desktop.
Save cbrnr/9bad76d97ff17e37980cf40416fc5596 to your computer and use it in GitHub Desktop.
rstudio-desktop-bin AUR PKGBUILD
pkgbase = rstudio-desktop-bin
pkgdesc = An integrated development environment (IDE) for R (binary from RStudio official repository)
pkgver = 2024.12.0.467
pkgrel = 2
url = https://posit.co/products/open-source/rstudio/
arch = x86_64
license = AGPL
depends = r>=3.3.0
depends = ttf-dejavu
provides = rstudio-desktop=2024.12.0.467
conflicts = rstudio-desktop
conflicts = rstudio-desktop-git
conflicts = rstudio-desktop-preview-bin
options = !strip
source_x86_64 = https://download1.rstudio.org/electron/jammy/amd64/rstudio-2024.12.0-467-amd64.deb
sha256sums_x86_64 = 4a3872fbd8fcfefa291dd8fd4d0115a47d6ed35f61d9b804528b2bd368aa1414
pkgname = rstudio-desktop-bin
# Maintainer: Clemens Brunner <clemens.brunner@gmail.com>
pkgname=rstudio-desktop-bin
pkgver=2024.12.0.467
_pkgver=`echo $pkgver | sed 's/\(.*\)\./\1-/'`
pkgrel=2
pkgdesc="An integrated development environment (IDE) for R (binary from RStudio official repository)"
arch=('x86_64')
license=('AGPL')
url="https://posit.co/products/open-source/rstudio/"
depends=('r>=3.3.0' 'ttf-dejavu')
makedepends=()
conflicts=('rstudio-desktop' 'rstudio-desktop-git' 'rstudio-desktop-preview-bin')
provides=("rstudio-desktop=${pkgver}")
options=(!strip)
sha256sums_x86_64=('4a3872fbd8fcfefa291dd8fd4d0115a47d6ed35f61d9b804528b2bd368aa1414')
source_x86_64=("https://download1.rstudio.org/electron/jammy/amd64/rstudio-${_pkgver}-amd64.deb")
package() {
shopt -s extglob
msg "Converting Debian package..."
cd "$srcdir"
tar Jxpf data.tar.xz -C "$pkgdir"
install -dm755 "$pkgdir/usr/bin"
ln -s /usr/lib/rstudio/rstudio "$pkgdir/usr/bin/rstudio"
}
@ginolhac
Copy link

thanks! much appreciated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment