diff --git a/BioArchLinux/r-leaflet.providers/PKGBUILD b/BioArchLinux/r-leaflet.providers/PKGBUILD new file mode 100644 index 0000000000..cdd8cb7022 --- /dev/null +++ b/BioArchLinux/r-leaflet.providers/PKGBUILD @@ -0,0 +1,27 @@ +# Maintainer: Christos Longros +_pkgname=leaflet.providers +_pkgver=3.0.0 +pkgname=r-${_pkgname,,} +pkgver=${_pkgver//-/.} +pkgrel=1 +pkgdesc="Default Configurations for Extra Map Tile Providers Used by 'leaflet'" +arch=(any) +url="https://cran.r-project.org/package=$_pkgname" +license=('BSD-2-Clause') +depends=( + r-htmltools +) +optdepends=( + r-jsonlite + r-v8 +) +source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz") +md5sums=('1ad3d285a18259618b892a6fccf169bd') +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.providers/lilac.py b/BioArchLinux/r-leaflet.providers/lilac.py new file mode 100644 index 0000000000..e954aae0d3 --- /dev/null +++ b/BioArchLinux/r-leaflet.providers/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.providers/lilac.yaml b/BioArchLinux/r-leaflet.providers/lilac.yaml new file mode 100644 index 0000000000..ea942726d0 --- /dev/null +++ b/BioArchLinux/r-leaflet.providers/lilac.yaml @@ -0,0 +1,12 @@ +build_prefix: extra-x86_64 +maintainers: +- github: chrislongros + email: chris.longros@gmail.com +repo_depends: +- r-htmltools +update_on: +- source: rpkgs + pkgname: leaflet.providers + repo: cran + md5: true +- alias: r