r-kernsmooth: add new pkg

This commit is contained in:
Shun Wang 2025-01-04 06:24:38 +00:00
parent 8bb56cd906
commit 07b57f8719
4 changed files with 64 additions and 1 deletions

View file

@ -0,0 +1,35 @@
# Maintainer: Shun Wang <shuonwang at gmail dot com>
# Contributor: Shun Wang <shuonwang at gmail dot com>
_pkgname=KernSmooth
_pkgver=2.23-26
pkgname=r-${_pkgname,,}
pkgver=${_pkgver//-/.}
pkgrel=1
pkgdesc="Functions for Kernel Smoothing Supporting Wand & Jones (1995)"
arch=('any')
url="https://cran.r-project.org/package=$_pkgname"
license=('LicenseRef-Unlimited')
depends=(
r
)
optdepends=(
r-mass
r-cardata
)
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz"
"Unlimited")
md5sums=('6bc46cc96d87d37de73050f49b2b1bc2')
b2sums=('a28342c54c6cbb9399b4f7424554d1456c0f2135da964e0e1e91efba1f3bd2129ac1cf62b9fab389b9e95f5293496b59bcfd4767d86db867a71303723c2516c1')
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"
install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname" Unlimited
}

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_makedepends:
- r-mass
- r-cardata
update_on:
- source: rpkgs
pkgname: KernSmooth
repo: cran
md5: true
- alias: r

View file

@ -7,10 +7,11 @@ pkgname=r-${_pkgname,,}
pkgver=${_pkgver//-/.}
pkgrel=1
pkgdesc="Trellis Graphics for R"
arch=('any')
arch=('x86_64')
url="https://cran.r-project.org/package=$_pkgname"
license=('GPL-2.0-or-later')
depends=(
r
)
optdepends=(
r-kernsmooth