blob: 0079541ea1330b9fad1d6d395de0727f50bbfdb6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# Maintainer: Alex Hirzel <alex at hirzel period us>
# Contributor: Pranav K Anupam <pranavanupam@yahoo.com>
# Contributor: Alex Branham <branham@utexas.edu>
_cranname=rvest
_cranver=1.0.4
_pkgtar=${_cranname}_${_cranver}.tar.gz
pkgname=r-rvest
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.6'
'r-glue'
'r-cli'
'r-httr>=0.5'
'r-lifecycle>=1.0.3'
'r-magrittr'
'r-rlang>=1.1.0'
'r-selectr'
'r-tibble'
'r-xml2>=1.3'
'r-withr'
)
optdepends=(
'r-covr'
'r-knitr'
'r-readr'
'r-repurrrsive'
'r-rmarkdown'
'r-spelling'
'r-stringi>=0.3.1'
'r-testthat>=3.0.2'
'r-webfakes'
)
source=("https://cran.r-project.org/src/contrib/${_pkgtar}")
sha256sums=('7d707c6b2994cf7b6c1d665bec872d2ef5c55f30e7c343c447a8a386a6049ca6')
build() {
cd "${srcdir}"
R CMD INSTALL ${_pkgtar} -l ${srcdir}
}
package() {
cd "${scrdir}"
install -dm0755 "$pkgdir/usr/lib/R/library"
install -Dm644 ${_cranname}/LICENSE -t "${pkgdir}/usr/share/licenses/$pkgname"
cp -a --no-preserve=ownership "${_cranname}" "${pkgdir}/usr/lib/R/library"
}
|