r-withr
MEDIUM
maintainer jose1711
5 votes
scanned 2026-10-26 11:44:54.928123
Why flagged
This package was orphaned and re-adopted within the last 30 days — a window where ownership transfers can introduce malicious changes.
Triggered rules
Medium
Recently orphaned & re-adopted
orphaned_readopted
This package was orphaned and re-adopted within the last 30 days — a window where ownership transfers can introduce malicious changes.
PKGBUILD
1
# Maintainer: peippo <christoph+aur@christophfink.com>
2
# Maintainer: Grey Christoforo <first name at last name dot net>
3
# Contributor: Viktor Drobot (aka dviktor) linux776 [at] gmail [dot] com
4
# Contributor: Grey Christoforo <first name at last name dot net>
5
6
_cranname=withr
7
_cranver=3.0.2
8
pkgname=r-${_cranname,,}
9
pkgdesc="Lightweight Well-Known Geometry Parsing"
10
url="https://cran.r-project.org/package=${_cranname}"
11
license=("MIT")
12
pkgver=${_cranver//[:-]/.}
13
pkgrel=1
14
15
arch=("any")
16
depends=(
17
"r>=3.2.0"
18
)
19
optdepends=(
20
"r-callr"
21
"r-dbi"
22
"r-knitr"
23
"r-rlang"
24
"r-rmarkdown>=2.12"
25
"r-rsqlite"
26
)
27
28
# The unittests for `r-withr` have multiple circular
29
# dependency chains.
30
31
# As such, the tests can not be run on first build.
32
# While R packages from CRAN, generally, are well-tested
33
# before they are released, in some situations, you want to
34
# have thorough testing on your own end.
35
36
# To run the tests, first build this package without `check()`
37
# (i.e., as-is) to bootstrap `r-withr`. Then, on subsequent builds,
38
# (assumining you have a local repository that is accessible from
39
# the build chroot), uncomment the lines defining `checkdepends`, below,
40
# as well as the `check()` function further down
41
42
# checkdepends=(
43
# "${optdepends[@]}"
44
# "r-testthat>=3.0.0"
45
# "texlive-core"
46
# )
47
48
source=("https://cran.r-project.org/src/contrib/${_cranname}_${_cranver}.tar.gz")
49
b2sums=("8830717b487f02b46ef25979ca7e11621d7d745d4fead5577c886a590ac6e4b9ecb34ca6fa17bb0f377ea1b4025b28ced9ef11f49f29e4493eac6de3b8132499")
50
51
build() {
52
mkdir -p "${srcdir}/build/"
53
R CMD INSTALL ${_cranname}_${_cranver}.tar.gz -l "${srcdir}/build/"
54
}
55
56
# check() {
57
# export R_LIBS="build/"
58
# R CMD check --no-manual "${_cranname}"
59
# }
60
61
package() {
62
install -dm0755 "${pkgdir}/usr/lib/R/library"
63
cp -a --no-preserve=ownership "${srcdir}/build/${_cranname}" "${pkgdir}/usr/lib/R/library"
64
if [[ -f "${_cranname}/LICENSE" ]]; then
65
install -Dm0644 "${_cranname}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
66
fi
67
}
68
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-10-26 11:44:54 | Medium | 1 |
| 2026-06-18 16:11:54 | Clean | 0 |