diff --git a/BioArchLinux/r-rle/PKGBUILD b/BioArchLinux/r-rle/PKGBUILD new file mode 100644 index 0000000000..db060c37e8 --- /dev/null +++ b/BioArchLinux/r-rle/PKGBUILD @@ -0,0 +1,29 @@ +# Maintainer: Shun Wang +# Contributor: Shun Wang + +_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" +} diff --git a/BioArchLinux/r-rle/lilac.py b/BioArchLinux/r-rle/lilac.py new file mode 100644 index 0000000000..39f2603630 --- /dev/null +++ b/BioArchLinux/r-rle/lilac.py @@ -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() diff --git a/BioArchLinux/r-rle/lilac.yaml b/BioArchLinux/r-rle/lilac.yaml new file mode 100644 index 0000000000..9662609503 --- /dev/null +++ b/BioArchLinux/r-rle/lilac.yaml @@ -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