mirror of
https://github.com/BioArchLinux/Packages.git
synced 2025-03-10 12:02:42 +00:00
r-dials: fix depends
This commit is contained in:
parent
fd76441fd6
commit
9ecfcda8e4
5 changed files with 82 additions and 4 deletions
|
@ -1,10 +1,10 @@
|
|||
# Maintainer: Pekka Ristola <pekkarr [at] protonmail [dot] com>
|
||||
|
||||
_pkgname=dials
|
||||
_pkgver=1.2.1
|
||||
_pkgver=1.3.0
|
||||
pkgname=r-${_pkgname,,}
|
||||
pkgver=${_pkgver//-/.}
|
||||
pkgrel=2
|
||||
pkgrel=0
|
||||
pkgdesc="Tools for Creating Tuning Parameter Values"
|
||||
arch=(any)
|
||||
url="https://cran.r-project.org/package=$_pkgname"
|
||||
|
@ -20,6 +20,7 @@ depends=(
|
|||
r-purrr
|
||||
r-rlang
|
||||
r-scales
|
||||
r-sfd
|
||||
r-tibble
|
||||
r-vctrs
|
||||
r-withr
|
||||
|
@ -31,6 +32,7 @@ checkdepends=(
|
|||
)
|
||||
optdepends=(
|
||||
r-covr
|
||||
r-ggplot2
|
||||
r-kernlab
|
||||
r-knitr
|
||||
r-rmarkdown
|
||||
|
@ -38,8 +40,8 @@ optdepends=(
|
|||
r-xml2
|
||||
)
|
||||
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
|
||||
md5sums=('71af0aae8351ff80de1e3d8c55f5c135')
|
||||
b2sums=('2763d0e81b810fc632f7396fd6b41324553e11180cf8293743201652f8915b0fdedca3c657bde6bff7cbeb0b93f5299990de431b32eeddecbc66b92491bc9d41')
|
||||
md5sums=('585072b9d580ddd916386a7ba5a62afe')
|
||||
b2sums=('ef7fd6b12573ea7818949c3536e37caec1a53565912632d110047a0717a5ccc02ef25edaed3418a59260eeff7cf2c6c3a19cfa27849a499193473c656394b670')
|
||||
|
||||
build() {
|
||||
mkdir build
|
||||
|
|
|
@ -13,6 +13,7 @@ repo_depends:
|
|||
- r-purrr
|
||||
- r-rlang
|
||||
- r-scales
|
||||
- r-sfd
|
||||
- r-tibble
|
||||
- r-vctrs
|
||||
- r-withr
|
||||
|
|
45
BioArchLinux/r-sfd/PKGBUILD
Normal file
45
BioArchLinux/r-sfd/PKGBUILD
Normal file
|
@ -0,0 +1,45 @@
|
|||
# Maintainer: Pekka Ristola <pekkarr [at] protonmail [dot] com>
|
||||
|
||||
_pkgname=sfd
|
||||
_pkgver=0.1.0
|
||||
pkgname=r-${_pkgname,,}
|
||||
pkgver=${_pkgver//-/.}
|
||||
pkgrel=1
|
||||
pkgdesc="Space-Filling Design Library"
|
||||
arch=(any)
|
||||
url="https://cran.r-project.org/package=$_pkgname"
|
||||
license=('MIT')
|
||||
depends=(
|
||||
r-cli
|
||||
r-rlang
|
||||
r-tibble
|
||||
)
|
||||
checkdepends=(
|
||||
r-testthat
|
||||
)
|
||||
optdepends=(
|
||||
r-ggplot2
|
||||
r-spelling
|
||||
r-testthat
|
||||
)
|
||||
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
|
||||
md5sums=('d78672808db82a9013f40bc11237cc3e')
|
||||
b2sums=('1529f497b400267ea73a9f49c0ac3cee45eab46c5fb5505f5ab10e81944774ae8dacccad44beebeec26328c86e9a4db90cc852284bf22d4fc8fd9c2f66fdca6a')
|
||||
|
||||
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"
|
||||
|
||||
install -d "$pkgdir/usr/share/licenses/$pkgname"
|
||||
ln -s "/usr/lib/R/library/$_pkgname/LICENSE" "$pkgdir/usr/share/licenses/$pkgname"
|
||||
}
|
14
BioArchLinux/r-sfd/lilac.py
Normal file
14
BioArchLinux/r-sfd/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()
|
16
BioArchLinux/r-sfd/lilac.yaml
Normal file
16
BioArchLinux/r-sfd/lilac.yaml
Normal file
|
@ -0,0 +1,16 @@
|
|||
build_prefix: extra-x86_64
|
||||
maintainers:
|
||||
- github: pekkarr
|
||||
email: pekkarr@protonmail.com
|
||||
repo_depends:
|
||||
- r-cli
|
||||
- r-rlang
|
||||
- r-tibble
|
||||
repo_makedepends:
|
||||
- r-testthat
|
||||
update_on:
|
||||
- source: rpkgs
|
||||
pkgname: sfd
|
||||
repo: cran
|
||||
md5: true
|
||||
- alias: r
|
Loading…
Add table
Reference in a new issue