mirror of
https://github.com/BioArchLinux/Packages.git
synced 2025-03-10 12:02:42 +00:00
r-metrics: add new pkg to fix depends
This commit is contained in:
parent
560d698299
commit
6b70b85bfa
3 changed files with 52 additions and 0 deletions
28
BioArchLinux/r-metrics/PKGBUILD
Normal file
28
BioArchLinux/r-metrics/PKGBUILD
Normal file
|
@ -0,0 +1,28 @@
|
|||
# Maintainer: Shun Wang <shuonwang at gmail dot com>
|
||||
|
||||
_pkgname=metrics
|
||||
_pkgver=0.1.4
|
||||
pkgname=r-${_pkgname,,}
|
||||
pkgver=${_pkgver//-/.}
|
||||
pkgrel=1
|
||||
pkgdesc="Evaluation Metrics for Machine Learning"
|
||||
arch=('any')
|
||||
url="https://cran.r-project.org/package=$_pkgname"
|
||||
license=('BSD-3-Clause')
|
||||
depends=(
|
||||
r
|
||||
)
|
||||
optdepends=(
|
||||
r-testthat
|
||||
)
|
||||
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
|
||||
md5sums=('b2202269b66cd891b834d742cfd937ba')
|
||||
b2sums=('74f5b769cdef2a1120b505901c039632eaf0c6fbb961141c3a58e45bafa0de584f4f2fe2a522d1d11a6c9c7ee8225a999662d3d2c9ada8bd39e7f45872216404')
|
||||
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"
|
||||
}
|
14
BioArchLinux/r-metrics/lilac.py
Normal file
14
BioArchLinux/r-metrics/lilac.py
Normal 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()
|
10
BioArchLinux/r-metrics/lilac.yaml
Normal file
10
BioArchLinux/r-metrics/lilac.yaml
Normal file
|
@ -0,0 +1,10 @@
|
|||
build_prefix: extra-x86_64
|
||||
maintainers:
|
||||
- github: shun2wang
|
||||
email: shuonwang@gmail.com
|
||||
update_on:
|
||||
- source: rpkgs
|
||||
pkgname: metrics
|
||||
repo: cran
|
||||
md5: true
|
||||
- alias: r
|
Loading…
Add table
Reference in a new issue