From 4dbc956ef70955932fc8b360db4720a8ea61f310 Mon Sep 17 00:00:00 2001 From: Dominic Ricottone Date: Wed, 29 Nov 2023 22:42:37 -0600 Subject: [PATCH] Added r-rvest --- Makefile | 3 +++ README.md | 6 ++++++ r-httr/Makefile | 1 + r-rvest/.SRCINFO | 31 +++++++++++++++++++++++++++++++ r-rvest/Makefile | 32 ++++++++++++++++++++++++++++++++ r-rvest/PKGBUILD | 28 ++++++++++++++++++++++++++++ r-selectr/Makefile | 1 + r-tibble/Makefile | 1 + r-withr/Makefile | 1 + r-xml2-git/Makefile | 1 + r-xml2/Makefile | 1 + 11 files changed, 106 insertions(+) create mode 100644 r-rvest/.SRCINFO create mode 100644 r-rvest/Makefile create mode 100644 r-rvest/PKGBUILD diff --git a/Makefile b/Makefile index c6e1877..7df992c 100644 --- a/Makefile +++ b/Makefile @@ -214,6 +214,9 @@ r-rlang: r-rstudioapi: cd $@ && make build +r-rvest: + cd $@ && make build + r-scales: cd $@ && make build diff --git a/README.md b/README.md index c954458..093af8a 100644 --- a/README.md +++ b/README.md @@ -244,4 +244,10 @@ flowchart TD r-reprex --> r-markdown r-reprex --> r-rstudioapi r-reprex --> r-withr + + r-rvest --> r-httr + r-rvest --> r-selectr + r-rvest --> r-tibble + r-rvest --> r-withr + r-rvest --> r-xml2 ``` diff --git a/r-httr/Makefile b/r-httr/Makefile index 7a80dd4..ff12065 100644 --- a/r-httr/Makefile +++ b/r-httr/Makefile @@ -12,4 +12,5 @@ build: .SRCINFO -I ~/pkg/local/pkgs/r-openssl-2.1.1-1-x86_64.pkg.tar.zst \ -I ~/pkg/local/pkgs/r-r6-2.5.1-1-any.pkg.tar.zst \ -I ~/pkg/local/pkgs/r-sys-3.4.2-1-x86_64.pkg.tar.zst + @echo "Please sign package and rebuild **r-rvest**!" diff --git a/r-rvest/.SRCINFO b/r-rvest/.SRCINFO new file mode 100644 index 0000000..e678253 --- /dev/null +++ b/r-rvest/.SRCINFO @@ -0,0 +1,31 @@ +pkgbase = r-rvest + pkgdesc = Easily Harvest (Scrape) Web Pages + pkgver = 1.0.3 + pkgrel = 1 + url = https://cran.r-project.org/package=rvest + arch = any + license = MIT + depends = r>=3.2 + depends = r-glue + depends = r-cli + depends = r-httr>=0.5 + depends = r-lifecycle>=1.0.0 + depends = r-magrittr + depends = r-rlang>=1.0.0 + depends = r-selectr + depends = r-tibble + depends = r-xml2 + depends = r-withr + optdepends = r-covr + optdepends = r-knitr + optdepends = r-readr + optdepends = r-repurrrsive + optdepends = r-rmarkdown + optdepends = r-spelling + optdepends = r-stringi + optdepends = r-testthat + optdepends = r-webfakes + source = https://cran.r-project.org/src/contrib/rvest_1.0.3.tar.gz + sha256sums = a465ef7391afaa3c26eebe8c61db02314ac04c4d8de5aa53f090716763d21c1e + +pkgname = r-rvest diff --git a/r-rvest/Makefile b/r-rvest/Makefile new file mode 100644 index 0000000..cbb48b0 --- /dev/null +++ b/r-rvest/Makefile @@ -0,0 +1,32 @@ +.SRCINFO: + makepkg --printsrcinfo > .SRCINFO + +.PHONY: build +build: .SRCINFO + arch-nspawn $$CHROOT/root pacman -Syu + makechrootpkg -c -r $$CHROOT \ + -I ~/pkg/local/pkgs/r-askpass-1.2.0-1-x86_64.pkg.tar.zst \ + -I ~/pkg/local/pkgs/r-cli-3.6.1-1-x86_64.pkg.tar.zst \ + -I ~/pkg/local/pkgs/r-curl-5.1.0-1-x86_64.pkg.tar.zst \ + -I ~/pkg/local/pkgs/r-fansi-1.0.5-2-x86_64.pkg.tar.zst \ + -I ~/pkg/local/pkgs/r-glue-1.6.2-2-x86_64.pkg.tar.zst \ + -I ~/pkg/local/pkgs/r-jsonlite-1.8.7-1-x86_64.pkg.tar.zst \ + -I ~/pkg/local/pkgs/r-httr-1.4.7-1-any.pkg.tar.zst \ + -I ~/pkg/local/pkgs/r-lifecycle-1.0.4-2-any.pkg.tar.zst \ + -I ~/pkg/local/pkgs/r-magrittr-2.0.3-1-x86_64.pkg.tar.zst \ + -I ~/pkg/local/pkgs/r-mime-0.12-2-x86_64.pkg.tar.zst \ + -I ~/pkg/local/pkgs/r-openssl-2.1.1-1-x86_64.pkg.tar.zst \ + -I ~/pkg/local/pkgs/r-pillar-1.9.0-1-any.pkg.tar.zst \ + -I ~/pkg/local/pkgs/r-pkgconfig-2.0.3-2-any.pkg.tar.zst \ + -I ~/pkg/local/pkgs/r-r6-2.5.1-1-any.pkg.tar.zst \ + -I ~/pkg/local/pkgs/r-rlang-1.1.2-1-x86_64.pkg.tar.zst \ + -I ~/pkg/local/pkgs/r-selectr-0.4.2-2-any.pkg.tar.zst \ + -I ~/pkg/local/pkgs/r-stringi-1.8.2-2-x86_64.pkg.tar.zst \ + -I ~/pkg/local/pkgs/r-stringr-1.5.1-2-any.pkg.tar.zst \ + -I ~/pkg/local/pkgs/r-sys-3.4.2-1-x86_64.pkg.tar.zst \ + -I ~/pkg/local/pkgs/r-tibble-3.2.1-1-x86_64.pkg.tar.zst \ + -I ~/pkg/local/pkgs/r-utf8-1.2.4-2-x86_64.pkg.tar.zst \ + -I ~/pkg/local/pkgs/r-vctrs-0.6.4-1-x86_64.pkg.tar.zst \ + -I ~/pkg/local/pkgs/r-withr-2.5.2-2-any.pkg.tar.zst \ + -I ~/pkg/local/pkgs/r-xml2-git-r805.a55c225-1-x86_64.pkg.tar.zst + diff --git a/r-rvest/PKGBUILD b/r-rvest/PKGBUILD new file mode 100644 index 0000000..e2f86c5 --- /dev/null +++ b/r-rvest/PKGBUILD @@ -0,0 +1,28 @@ +# Contributor: Viktor Drobot (aka dviktor) linux776 [at] gmail [dot] com +# Contributor: Pranav K Anupam +# Contributor: Alex Branham + +_cranname=rvest +_cranver=1.0.3 +pkgname=r-${_cranname,,} +pkgver=${_cranver//[:-]/.} +pkgrel=1 +pkgdesc="Easily Harvest (Scrape) Web Pages" +arch=(any) +url="https://cran.r-project.org/package=${_cranname}" +license=(MIT) +#depends=('r>=3.2' r-glue r-cli 'r-httr>=0.5' 'r-lifecycle>=1.0.0' r-magrittr 'r-rlang>=1.0.0' r-selectr r-tibble 'r-xml2>=1.3' r-withr) +depends=('r>=3.2' r-glue r-cli 'r-httr>=0.5' 'r-lifecycle>=1.0.0' r-magrittr 'r-rlang>=1.0.0' r-selectr r-tibble r-xml2 r-withr) +optdepends=(r-covr r-knitr r-readr r-repurrrsive r-rmarkdown r-spelling r-stringi r-testthat r-webfakes) +source=("https://cran.r-project.org/src/contrib/${_cranname}_${_cranver}.tar.gz") +sha256sums=('a465ef7391afaa3c26eebe8c61db02314ac04c4d8de5aa53f090716763d21c1e') + +build() { + R CMD INSTALL ${_cranname}_${_cranver}.tar.gz -l "${srcdir}" +} + +package() { + install -dm0755 "${pkgdir}/usr/lib/R/library" + + cp -a --no-preserve=ownership "${_cranname}" "${pkgdir}/usr/lib/R/library" +} diff --git a/r-selectr/Makefile b/r-selectr/Makefile index 78245f5..41f4f03 100644 --- a/r-selectr/Makefile +++ b/r-selectr/Makefile @@ -14,4 +14,5 @@ build: .SRCINFO -I ~/pkg/local/pkgs/r-stringi-1.8.2-2-x86_64.pkg.tar.zst \ -I ~/pkg/local/pkgs/r-stringr-1.5.1-2-any.pkg.tar.zst \ -I ~/pkg/local/pkgs/r-vctrs-0.6.4-1-x86_64.pkg.tar.zst + @echo "Please sign package and rebuild **r-rvest**!" diff --git a/r-tibble/Makefile b/r-tibble/Makefile index c2f2af1..4234eef 100644 --- a/r-tibble/Makefile +++ b/r-tibble/Makefile @@ -21,5 +21,6 @@ build: .SRCINFO @echo "Please sign package and rebuild **r-ggplot2**!" @echo "Please sign package and rebuild **r-googledrive**!" @echo "Please sign package and rebuild **r-rematch2**!" + @echo "Please sign package and rebuild **r-rvest**!" @echo "Please sign package and rebuild **r-vroom**!" diff --git a/r-withr/Makefile b/r-withr/Makefile index d63f427..1c707e6 100644 --- a/r-withr/Makefile +++ b/r-withr/Makefile @@ -8,5 +8,6 @@ build: .SRCINFO @echo "Please sign package and rebuild **r-gargle**!" @echo "Please sign package and rebuild **r-ggplot2**!" @echo "Please sign package and rebuild **r-reprex**!" + @echo "Please sign package and rebuild **r-rvest**!" @echo "Please sign package and rebuild **r-tidyselect**!" diff --git a/r-xml2-git/Makefile b/r-xml2-git/Makefile index bf382d2..b1ce49f 100644 --- a/r-xml2-git/Makefile +++ b/r-xml2-git/Makefile @@ -7,4 +7,5 @@ build: .SRCINFO makechrootpkg -c -r $$CHROOT \ -I ~/pkg/local/pkgs/r-cli-3.6.1-1-x86_64.pkg.tar.zst \ -I ~/pkg/local/pkgs/r-rlang-1.1.2-1-x86_64.pkg.tar.zst + @echo "Please sign package and rebuild **r-rvest**!" diff --git a/r-xml2/Makefile b/r-xml2/Makefile index 722d171..6fc9659 100644 --- a/r-xml2/Makefile +++ b/r-xml2/Makefile @@ -5,4 +5,5 @@ build: .SRCINFO arch-nspawn $$CHROOT/root pacman -Syu makechrootpkg -c -r $$CHROOT + @echo "Please sign package and rebuild **r-rvest**!" -- 2.45.2