r-scoringutils: add new pkg

This commit is contained in:
Shun Wang 2024-12-22 05:27:37 +00:00
parent 89a97b8e72
commit 02b450acf0
3 changed files with 78 additions and 0 deletions

View file

@ -0,0 +1,44 @@
# Maintainer: Guoyi Zhang <guoyizhang at malacology dot net>
_pkgname=scoringutils
_pkgver=2.0.0
pkgname=r-${_pkgname,,}
pkgver=${_pkgver//-/.}
pkgrel=1
pkgdesc="Utilities for Scoring and Assessing Predictions"
arch=('any')
url="https://cran.r-project.org/package=$_pkgname"
license=('MIT')
depends=(
r-checkmate
r-cli
r-data.table
r-ggplot2
r-methods
r-metrics
r-purrr
r-scoringrules
r-stats
)
optdepends=(
r-ggdist
r-kableextra
r-knitr
r-magrittr
r-rmarkdown
r-testthat
r-vdiffr
)
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
md5sums=('ca6a268549daf6e599d1792721855eb3')
b2sums=('62873c7bf56ef631a89f458f2c29b9e4242349e93f9041af54d709fbc4046c829e6040805d2171ade53c453cf0af2a6132c37d9b68d48c835f9e3cfe649e3703')
build() {
mkdir build
R CMD INSTALL -l build "$_pkgname"
}
package() {
install -d "$pkgdir/usr/lib/R/library"
cp -a --no-preserve=ownership "build/$_pkgname" "$pkgdir/usr/lib/R/library"
}

View file

@ -0,0 +1,14 @@
#!/usr/bin/env python3
from lilaclib import *
import os
import sys
sys.path.append(os.path.normpath(f'{__file__}/../../../lilac-extensions'))
from lilac_r_utils import r_pre_build
def pre_build():
r_pre_build(_G)
def post_build():
git_pkgbuild_commit()
update_aur_repo()

View file

@ -0,0 +1,20 @@
build_prefix: extra-x86_64
maintainers:
- github: shun2wang
email: shuonwang@gmail.com
repo_depends:
- r-checkmate
- r-cli
- r-data.table
- r-ggplot2
- r-methods
- r-metrics
- r-purrr
- r-scoringrules
- r-stats
update_on:
- source: rpkgs
pkgname: scoringutils
repo: cran
md5: true
- alias: r