From 1042c035ae88dcbce5274cccdd2cd3cc2862dece Mon Sep 17 00:00:00 2001 From: Dominic Ricottone Date: Fri, 20 Dec 2024 15:45:19 -0600 Subject: [PATCH] Added r-textdata --- Makefile | 3 +++ README.md | 4 ++++ r-fs/Makefile | 1 + r-rappdirs/Makefile | 1 + r-readr/Makefile | 1 + r-textdata/.SRCINFO | 20 ++++++++++++++++++++ r-textdata/Makefile | 35 +++++++++++++++++++++++++++++++++++ r-textdata/PKGBUILD | 25 +++++++++++++++++++++++++ 8 files changed, 90 insertions(+) create mode 100644 r-textdata/.SRCINFO create mode 100644 r-textdata/Makefile create mode 100644 r-textdata/PKGBUILD diff --git a/Makefile b/Makefile index d29a04a..b781692 100644 --- a/Makefile +++ b/Makefile @@ -280,6 +280,9 @@ r-sys: r-systemfonts: cd $@ && make build +r-textdata: + cd $@ && make build + r-textshaping: cd $@ && make build diff --git a/README.md b/README.md index a828803..0b5aeca 100644 --- a/README.md +++ b/README.md @@ -309,4 +309,8 @@ flowchart TD r-tidytext --> r-matrix r-tidytext --> r-purrr r-tidytext --> r-tokenizers + + r-textdata --> r-fs + r-textdata --> r-rappdirs + r-textdata --> r-readr ``` diff --git a/r-fs/Makefile b/r-fs/Makefile index 8d3a933..3bc63c8 100644 --- a/r-fs/Makefile +++ b/r-fs/Makefile @@ -8,4 +8,5 @@ build: .SRCINFO @echo "Please sign package and rebuild **r-gargle**!" @echo "Please sign package and rebuild **r-reprex**!" @echo "Please sign package and rebuild **r-sass**!" + @echo "Please sign package and rebuild **r-tidytext**!" diff --git a/r-rappdirs/Makefile b/r-rappdirs/Makefile index 852ec60..bbe92b5 100644 --- a/r-rappdirs/Makefile +++ b/r-rappdirs/Makefile @@ -7,4 +7,5 @@ build: .SRCINFO makechrootpkg -c -r $$CHROOT @echo "Please sign package and rebuild **r-gargle**!" @echo "Please sign package and rebuild **r-sass**!" + @echo "Please sign package and rebuild **r-textdata**!" diff --git a/r-readr/Makefile b/r-readr/Makefile index 90d1010..06b4f8e 100644 --- a/r-readr/Makefile +++ b/r-readr/Makefile @@ -30,4 +30,5 @@ build: .SRCINFO -I ~/pkg/local/pkgs/r-vroom-1.6.4-1-x86_64.pkg.tar.zst \ -I ~/pkg/local/pkgs/r-withr-2.5.2-2-any.pkg.tar.zst @echo "Please sign package and rebuild **r-haven**!" + @echo "Please sign package and rebuild **r-textdata**!" diff --git a/r-textdata/.SRCINFO b/r-textdata/.SRCINFO new file mode 100644 index 0000000..37fc14f --- /dev/null +++ b/r-textdata/.SRCINFO @@ -0,0 +1,20 @@ +pkgbase = r-textdata + pkgdesc = Provides a framework to download, parse, and store text datasets on the disk and load them when needed. + pkgver = 0.4.4 + pkgrel = 1 + url = https://cran.r-project.org/package=textdata + arch = any + license = MIT + depends = r + depends = r-fs + depends = r-rappdirs + depends = r-readr + depends = r-tibble + optdepends = r-covr + optdepends = r-knitr + optdepends = r-markdown + optdepends = r-testthat>=2.1.0 + source = https://cran.r-project.org/src/contrib/textdata_0.4.4.tar.gz + sha256sums = a7751678f8f0b70fda86a4b645cb301cecd8b0e22f8673033fc65d0f9b26e7c3 + +pkgname = r-textdata diff --git a/r-textdata/Makefile b/r-textdata/Makefile new file mode 100644 index 0000000..708b76e --- /dev/null +++ b/r-textdata/Makefile @@ -0,0 +1,35 @@ +.SRCINFO: + makepkg --printsrcinfo > .SRCINFO + +.PHONY: build +build: .SRCINFO + arch-nspawn $$CHROOT/root pacman -Syu + makechrootpkg -c -r $$CHROOT \ + -I ~/pkg/local/pkgs/r-bit-4.0.5-1-x86_64.pkg.tar.zst \ + -I ~/pkg/local/pkgs/r-bit64-4.0.5-2-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-clipr-0.8.0-2-any.pkg.tar.zst \ + -I ~/pkg/local/pkgs/r-cpp11-0.4.6-1-any.pkg.tar.zst \ + -I ~/pkg/local/pkgs/r-crayon-1.5.2-2-any.pkg.tar.zst \ + -I ~/pkg/local/pkgs/r-fansi-1.0.5-2-x86_64.pkg.tar.zst \ + -I ~/pkg/local/pkgs/r-fs-1.6.3-1-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-hms-1.1.3-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-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-prettyunits-1.2.0-1-any.pkg.tar.zst \ + -I ~/pkg/local/pkgs/r-progress-1.2.2-1-any.pkg.tar.zst \ + -I ~/pkg/local/pkgs/r-r6-2.5.1-1-any.pkg.tar.zst \ + -I ~/pkg/local/pkgs/r-rappdirs-0.3.3-1-x86_64.pkg.tar.zst \ + -I ~/pkg/local/pkgs/r-readr-2.1.4-2-x86_64.pkg.tar.zst \ + -I ~/pkg/local/pkgs/r-rlang-1.1.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-tidyselect-1.2.0-2-any.pkg.tar.zst \ + -I ~/pkg/local/pkgs/r-tzdb-0.4.0-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-vroom-1.6.4-1-x86_64.pkg.tar.zst \ + -I ~/pkg/local/pkgs/r-withr-2.5.2-2-any.pkg.tar.zst + diff --git a/r-textdata/PKGBUILD b/r-textdata/PKGBUILD new file mode 100644 index 0000000..9c2d0eb --- /dev/null +++ b/r-textdata/PKGBUILD @@ -0,0 +1,25 @@ +# Contributor: Viktor Drobot (aka dviktor) linux776 [at] gmail [dot] com + +_cranname=textdata +_cranver=0.4.4 +pkgname=r-${_cranname,,} +pkgver=${_cranver//[:-]/.} +pkgrel=1 +pkgdesc="Provides a framework to download, parse, and store text datasets on the disk and load them when needed." +arch=(any) +url="https://cran.r-project.org/package=${_cranname}" +license=(MIT) +depends=(r r-fs r-rappdirs r-readr r-tibble) +optdepends=(r-covr r-knitr r-markdown 'r-testthat>=2.1.0') +source=("https://cran.r-project.org/src/contrib/${_cranname}_${_cranver}.tar.gz") +sha256sums=('a7751678f8f0b70fda86a4b645cb301cecd8b0e22f8673033fc65d0f9b26e7c3') + +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" +} -- 2.45.2