mirror of
https://github.com/BioArchLinux/Packages.git
synced 2025-03-10 12:02:42 +00:00
72 lines
1.3 KiB
Bash
72 lines
1.3 KiB
Bash
# Maintainer: Pekka Ristola <pekkarr [at] protonmail [dot] com>
|
|
|
|
_pkgname=ggstats
|
|
_pkgver=0.7.0
|
|
pkgname=r-${_pkgname,,}
|
|
pkgver=${_pkgver//-/.}
|
|
pkgrel=1
|
|
pkgdesc="Extension to 'ggplot2' for Plotting Stats"
|
|
arch=(any)
|
|
url="https://cran.r-project.org/package=$_pkgname"
|
|
license=('GPL-3.0-or-later')
|
|
depends=(
|
|
r-cli
|
|
r-dplyr
|
|
r-forcats
|
|
r-ggplot2
|
|
r-lifecycle
|
|
r-patchwork
|
|
r-purrr
|
|
r-rlang
|
|
r-scales
|
|
r-stringr
|
|
r-tidyr
|
|
)
|
|
checkdepends=(
|
|
r-betareg
|
|
r-broom
|
|
r-broom.helpers
|
|
r-emmeans
|
|
r-parameters
|
|
r-pscl
|
|
r-reshape
|
|
r-survey
|
|
r-testthat
|
|
r-vdiffr
|
|
)
|
|
optdepends=(
|
|
r-betareg
|
|
r-broom
|
|
r-broom.helpers
|
|
r-emmeans
|
|
r-glue
|
|
r-gtsummary
|
|
r-knitr
|
|
r-labelled
|
|
r-parameters
|
|
r-pscl
|
|
r-reshape
|
|
r-rmarkdown
|
|
r-spelling
|
|
r-survey
|
|
r-testthat
|
|
r-vdiffr
|
|
)
|
|
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
|
|
md5sums=('e76fa807019923764e4732f239a9f18b')
|
|
b2sums=('b6673d3e0b23ac9cfc1128c61584a00cf051d88ac34445067754b89937dc1c336f2e2666695a55b741024ecfd23c7fe0cc56a999cad69563a15d26873596e539')
|
|
|
|
build() {
|
|
mkdir build
|
|
R CMD INSTALL -l build "$_pkgname"
|
|
}
|
|
|
|
check() {
|
|
cd "$_pkgname/tests"
|
|
R_LIBS="$srcdir/build" NOT_CRAN=true Rscript --vanilla testthat.R
|
|
}
|
|
|
|
package() {
|
|
install -d "$pkgdir/usr/lib/R/library"
|
|
cp -a --no-preserve=ownership "build/$_pkgname" "$pkgdir/usr/lib/R/library"
|
|
}
|