From 59cfb847b0f1318071bc331aea4876a60db12504 Mon Sep 17 00:00:00 2001 From: Pekka Ristola Date: Sun, 22 Oct 2023 13:57:13 +0300 Subject: [PATCH] r-flowgate: init --- BioArchLinux/r-flowgate/PKGBUILD | 54 ++++++++++++++++++++++++++++++ BioArchLinux/r-flowgate/lilac.py | 14 ++++++++ BioArchLinux/r-flowgate/lilac.yaml | 23 +++++++++++++ 3 files changed, 91 insertions(+) create mode 100644 BioArchLinux/r-flowgate/PKGBUILD create mode 100644 BioArchLinux/r-flowgate/lilac.py create mode 100644 BioArchLinux/r-flowgate/lilac.yaml diff --git a/BioArchLinux/r-flowgate/PKGBUILD b/BioArchLinux/r-flowgate/PKGBUILD new file mode 100644 index 0000000000..e8b343f357 --- /dev/null +++ b/BioArchLinux/r-flowgate/PKGBUILD @@ -0,0 +1,54 @@ +# Maintainer: Pekka Ristola + +_pkgname=flowGate +_pkgver=1.0.0 +pkgname=r-${_pkgname,,} +pkgver=${_pkgver//-/.} +pkgrel=1 +pkgdesc="Interactive Cytometry Gating in R" +arch=(any) +url="https://bioconductor.org/packages/${_pkgname}" +license=(MIT) +depends=( + r-biocmanager + r-dplyr + r-flowcore + r-flowworkspace + r-ggcyto + r-ggplot2 + r-purrr + r-rlang + r-shiny + r-tibble +) +checkdepends=( + r-testthat +) +optdepends=( + r-knitr + r-rmarkdown + r-stringr + r-testthat + r-tidyverse +) +source=("https://bioconductor.org/packages/release/bioc/src/contrib/${_pkgname}_${_pkgver}.tar.gz") +md5sums=('06253e3ee0f40cfd6446ec6aba2a4562') +sha256sums=('6c21be074b5ce012c94b4595ce4328444666ff2ff0d177568273a1bdf2bf7572') + +build() { + mkdir -p build + R CMD INSTALL "$_pkgname" -l build +} + +check() { + cd "$_pkgname/tests" + R_LIBS="$srcdir/build" NOT_CRAN=true Rscript --vanilla testthat.R +} + +package() { + install -d "$pkgdir/usr/lib/R/library" + cp -a --no-preserve=ownership "build/$_pkgname" "$pkgdir/usr/lib/R/library" + + install -d "$pkgdir/usr/share/licenses/$pkgname" + ln -s "/usr/lib/R/library/$_pkgname/LICENSE" "$pkgdir/usr/share/licenses/$pkgname" +} diff --git a/BioArchLinux/r-flowgate/lilac.py b/BioArchLinux/r-flowgate/lilac.py new file mode 100644 index 0000000000..b5cdb057c5 --- /dev/null +++ b/BioArchLinux/r-flowgate/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-flowgate/lilac.yaml b/BioArchLinux/r-flowgate/lilac.yaml new file mode 100644 index 0000000000..1057e35c98 --- /dev/null +++ b/BioArchLinux/r-flowgate/lilac.yaml @@ -0,0 +1,23 @@ +build_prefix: extra-x86_64 +maintainers: +- github: pekkarr + email: pekkarr@protonmail.com +repo_depends: +- r-biocmanager +- r-dplyr +- r-flowcore +- r-flowworkspace +- r-ggcyto +- r-ggplot2 +- r-purrr +- r-rlang +- r-shiny +- r-tibble +repo_makedepends: +- r-testthat +update_on: +- source: rpkgs + pkgname: flowGate + repo: bioc + md5: true +- alias: r