summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ee26f526ab9d4b7342d3e43c9e48facce5430957 (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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# Maintainer: peippo <christoph+aur@christophfink.com>
# Contributor: Viktor Drobot (aka dviktor) linux776 [at] gmail [dot] com
# Contributor: Matt Frichtl <frichtlm@gmail.com>
# Contributor: Kibouo <csonka.mihaly@hotmail.com>
# Contributor: Ward Segers <w@rdsegers.be>
# Contributor: Alex Branham <alex.branham@gmail.com>

_cranname=testthat
_cranver=3.1.4
pkgname=r-${_cranname,,}
pkgver=${_cranver//[:-]/.}
pkgrel=1
pkgdesc="Unit Testing for R"
arch=(i686 x86_64)
url="https://cran.r-project.org/package=${_cranname}"
license=(MIT)
depends=(
    "r>=3.1"
	r-brio
	"r-callr>=3.5.1"
	"r-cli>=3.3.0"
	"r-crayon>=1.3.4"
	r-desc
	r-digest
	"r-ellipsis>=0.2.0"
	r-evaluate
	r-jsonlite
	r-lifecycle
	r-magrittr
	r-pkgload
	r-praise
	r-processx
	"r-ps>=1.3.4"
	"r-r6>=2.2.0"
	"r-rlang>=1.0.1"
	"r-waldo>=0.4.0"
	"r-withr>=2.4.3"
)
optdepends=(
    r-covr
	"r-curl>=0.9.5"
	"r-diffviewer>=0.1.0"
	r-knitr
	r-mockery
	r-rmarkdown
	r-rstudioapi
	r-shiny
	r-usethis
	"r-vctrs>=0.1.0"
	r-xml2
)
source=("https://cran.r-project.org/src/contrib/${_cranname}_${_cranver}.tar.gz")
sha256sums=("a47eec031b4e186a8bd331031371b2347063a283050eca2adbfaa37d7a6c9c09")

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"

  if [[ -f "${_cranname}/LICENSE" ]]; then
    install -Dm0644 "${_cranname}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
  fi
}