r-mgcv: add new pkg

This commit is contained in:
Shun Wang 2025-01-03 01:27:41 +00:00
parent 12af96f6f7
commit 70e8c81d6e
3 changed files with 63 additions and 0 deletions

View file

@ -0,0 +1,33 @@
# Maintainer: Shun Wang <shuonwang at gmail dot com>
# Contributor: Shun Wang <shuonwang at gmail dot com>
_pkgname=mgcv
_pkgver=1.9-1
pkgname=r-${_pkgname,,}
pkgver=${_pkgver//-/.}
pkgrel=1
pkgdesc="Mixed GAM Computation Vehicle with Automatic Smoothness Estimation"
arch=('any')
url="https://cran.r-project.org/package=$_pkgname"
license=('GPL-2.0-or-later')
depends=(
r-nlme
)
optdepends=(
r-matrix
r-survival
r-mass
)
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
md5sums=('458c552f0fd41c12cdddbc5af6bf1fca')
b2sums=('57b8e650464cb0ddd5ba9829a77da289715f0b81f37b53dec717afb9c8d669a0a0312eb4fbb55c281b15c063fc20c719c2e7f5d0d78eab2201ae9cbfb3778e26')
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,16 @@
build_prefix: extra-x86_64
maintainers:
- github: shun2wang
email: shuonwang@gmail.com
repo_depends:
- r-nlme
repo_makedepends:
- r-matrix
- r-survival
- r-mass
update_on:
- source: rpkgs
pkgname: mgcv
repo: cran
md5: true
- alias: r