From 3356710eee02f8194d1bedb5fcf3e65cde4886fb Mon Sep 17 00:00:00 2001 From: Christos Longros Date: Wed, 22 Apr 2026 20:31:57 +0200 Subject: [PATCH] r-leaflet: add Create Interactive Web Maps with the JavaScript 'Leaflet' Library Create and customize interactive maps using the 'Leaflet' JavaScript library and the 'htmlwidgets' package. These maps can be used directly from the R console, from 'RStudio', in Shiny applications and R Markdown documents. Signed-off-by: Christos Longros --- BioArchLinux/r-leaflet/PKGBUILD | 48 +++++++++++++++++++++++++++++++ BioArchLinux/r-leaflet/lilac.py | 11 +++++++ BioArchLinux/r-leaflet/lilac.yaml | 25 ++++++++++++++++ 3 files changed, 84 insertions(+) create mode 100644 BioArchLinux/r-leaflet/PKGBUILD create mode 100644 BioArchLinux/r-leaflet/lilac.py create mode 100644 BioArchLinux/r-leaflet/lilac.yaml diff --git a/BioArchLinux/r-leaflet/PKGBUILD b/BioArchLinux/r-leaflet/PKGBUILD new file mode 100644 index 0000000000..7e9be80673 --- /dev/null +++ b/BioArchLinux/r-leaflet/PKGBUILD @@ -0,0 +1,48 @@ +# Maintainer: Christos Longros +_pkgname=leaflet +_pkgver=2.2.3 +pkgname=r-${_pkgname,,} +pkgver=${_pkgver//-/.} +pkgrel=1 +pkgdesc="Create Interactive Web Maps with the JavaScript 'Leaflet' Library" +arch=(any) +url="https://cran.r-project.org/package=$_pkgname" +license=('MIT') +depends=( + r-crosstalk + r-htmltools + r-htmlwidgets + r-jquerylib + r-leaflet.providers + r-magrittr + r-png + r-raster + r-rcolorbrewer + r-rlang + r-scales + r-sf + r-viridislite + r-xfun +) +optdepends=( + r-knitr + r-maps + r-purrr + r-r6 + r-rjsonio + r-rmarkdown + r-s2 + r-shiny + r-sp + r-terra +) +source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz") +md5sums=('916c5eb105870df189cb04df996ac186') +build() { + mkdir build + R CMD INSTALL -l build "$_pkgname" +} +package() { + install -d "$pkgdir/usr/lib/R/library" + cp -a --no-preserve=ownership "build/$_pkgname" "$pkgdir/usr/lib/R/library" +} diff --git a/BioArchLinux/r-leaflet/lilac.py b/BioArchLinux/r-leaflet/lilac.py new file mode 100644 index 0000000000..e954aae0d3 --- /dev/null +++ b/BioArchLinux/r-leaflet/lilac.py @@ -0,0 +1,11 @@ +#!/usr/bin/env python3 +from lilaclib import * +import os +import sys +sys.path.append(os.path.normpath(f'{__file__}/../../../lilac-extensions')) +from lilac_r_utils import r_pre_build +def pre_build(): + r_pre_build(_G) +def post_build(): + git_pkgbuild_commit() + update_aur_repo() diff --git a/BioArchLinux/r-leaflet/lilac.yaml b/BioArchLinux/r-leaflet/lilac.yaml new file mode 100644 index 0000000000..68a8341554 --- /dev/null +++ b/BioArchLinux/r-leaflet/lilac.yaml @@ -0,0 +1,25 @@ +build_prefix: extra-x86_64 +maintainers: +- github: chrislongros + email: chris.longros@gmail.com +repo_depends: +- r-crosstalk +- r-htmltools +- r-htmlwidgets +- r-jquerylib +- r-leaflet.providers +- r-magrittr +- r-png +- r-raster +- r-rcolorbrewer +- r-rlang +- r-scales +- r-sf +- r-viridislite +- r-xfun +update_on: +- source: rpkgs + pkgname: leaflet + repo: cran + md5: true +- alias: r