r-dcurver: add new pkg

This commit is contained in:
Shun Wang 2025-01-08 14:21:17 +08:00 committed by GitHub
parent cbe07b8397
commit 24279fbb2d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 59 additions and 3 deletions

View file

@ -0,0 +1,31 @@
# Maintainer: Shun Wang <shuonwang at gmail dot com>
_pkgname=dcurver
_pkgver=0.9.2
pkgname=r-${_pkgname,,}
pkgver=${_pkgver//-/.}
pkgrel=1
pkgdesc="Utility Functions for Davidian Curves"
arch=('x86_64')
url="https://cran.r-project.org/package=$_pkgname"
license=('GPL-3.0-only')
depends=(
r-rcpp
r-rcpparmadillo
)
optdepends=(
r-testthat
)
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
md5sums=('3398f1d3189b8ce16d00beec94e56336')
b2sums=('3d13a22a817df8eb9e591a493fde4ba9d7afa3295b8328cfac4ae81feb6a526c8d4cdca06ffcfa77c0b1247338ceaaca071d97410b71a4462cc5bf9c271423ea')
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,13 @@
build_prefix: extra-x86_64
maintainers:
- github: shun2wang
email: shuonwang@gmail.com
repo_depends:
- r-rcpp
- r-rcpparmadillo
update_on:
- source: rpkgs
pkgname: dcurver
repo: cran
md5: true
- alias: r

View file

@ -13,15 +13,13 @@ depends=(
r-gparotation
r-gridextra
r-rcpp
r-rcpparmadillo
r-vegan
r-deriv
r-pbapply
r-dcurver
r-simdesign
)
makedepends=(
r-rcpparmadillo
)
optdepends=(
r-latticeextra
r-directlabels