~dricottone/pkgbuilds

1042c035ae88dcbce5274cccdd2cd3cc2862dece — Dominic Ricottone 3 days ago b52f223 dev
Added r-textdata
M Makefile => Makefile +3 -0
@@ 280,6 280,9 @@ r-sys:
r-systemfonts:
	cd $@ && make build

r-textdata:
	cd $@ && make build

r-textshaping:
	cd $@ && make build


M README.md => README.md +4 -0
@@ 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
```

M r-fs/Makefile => r-fs/Makefile +1 -0
@@ 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**!"


M r-rappdirs/Makefile => r-rappdirs/Makefile +1 -0
@@ 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**!"


M r-readr/Makefile => r-readr/Makefile +1 -0
@@ 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**!"


A r-textdata/.SRCINFO => r-textdata/.SRCINFO +20 -0
@@ 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

A r-textdata/Makefile => r-textdata/Makefile +35 -0
@@ 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


A r-textdata/PKGBUILD => r-textdata/PKGBUILD +25 -0
@@ 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"
}