Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions BioArchLinux/r-leaflet/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# Maintainer: Christos Longros <chris.longros@gmail.com>
_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')
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sums again

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"
}
11 changes: 11 additions & 0 deletions BioArchLinux/r-leaflet/lilac.py
Original file line number Diff line number Diff line change
@@ -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()
25 changes: 25 additions & 0 deletions BioArchLinux/r-leaflet/lilac.yaml
Original file line number Diff line number Diff line change
@@ -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