r-rle: add new pkg

This commit is contained in:
Shun Wang 2025-01-09 02:41:43 +00:00
parent 771f6f4ce1
commit bc0ca946c1
3 changed files with 54 additions and 0 deletions

View file

@ -0,0 +1,29 @@
# Maintainer: Shun Wang <shuonwang at gmail dot com>
# Contributor: Shun Wang <shuonwang at gmail dot com>
_pkgname=rle
_pkgver=0.9.2
pkgname=r-${_pkgname,,}
pkgver=${_pkgver//-/.}
pkgrel=1
pkgdesc="Common Functions for Run-Length Encoded Vectors"
arch=('x86_64')
url="https://cran.r-project.org/package=$_pkgname"
license=('GPL-3.0-only')
depends=()
optdepends=(
r-covr
)
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
md5sums=('ff69a29a64e3a987278522e100c8b27a')
b2sums=('601563122f08b5a4b05839e748a3393a05f62d524609b8f1cf22c0fe07b019f1c668c26ff38eb8e3d2d8705417b5cbdfc9c5957ad485086a384c4f9232372caa')
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,11 @@
build_prefix: extra-x86_64
maintainers:
- github: shun2wang
email: shuonwang@gmail.com
repo_depends:
update_on:
- source: rpkgs
pkgname: rle
repo: cran
md5: true
- alias: r