r-nebulosa: fix depends, use metadata checks

This commit is contained in:
Pekka Ristola 2024-03-05 13:00:14 +02:00
parent 631d9f1296
commit 2618d4f846
No known key found for this signature in database
GPG key ID: 2C20BE716E05213E
3 changed files with 28 additions and 24 deletions

View file

@ -1,20 +1,20 @@
# Maintainer: Guoyi Zhang <guoyizhang at malacology dot net> # Maintainer: Guoyi Zhang <guoyizhang at malacology dot net>
_pkgname=Nebulosa _pkgname=Nebulosa
_pkgver=1.12.0 _pkgver=1.12.1
pkgname=r-${_pkgname,,} pkgname=r-${_pkgname,,}
pkgver=1.12.0 pkgver=${_pkgver//-/.}
pkgrel=1 pkgrel=0
pkgdesc='Single-Cell Data Visualisation Using Kernel Gene-Weighted Density Estimation' pkgdesc="Single-Cell Data Visualisation Using Kernel Gene-Weighted Density Estimation"
arch=('any') arch=(any)
url="https://bioconductor.org/packages/${_pkgname}" url="https://bioconductor.org/packages/$_pkgname"
license=('GPL') license=('GPL-3.0-only')
depends=( depends=(
r
r-ggplot2 r-ggplot2
r-ggrastr
r-ks r-ks
r-patchwork r-patchwork
r-seurat r-seuratobject
r-singlecellexperiment r-singlecellexperiment
r-summarizedexperiment r-summarizedexperiment
) )
@ -28,18 +28,19 @@ optdepends=(
r-rmarkdown r-rmarkdown
r-scater r-scater
r-scran r-scran
r-seuratobject r-seurat
r-testthat r-testthat
) )
source=("https://bioconductor.org/packages/release/bioc/src/contrib/${_pkgname}_${_pkgver}.tar.gz") source=("https://bioconductor.org/packages/release/bioc/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
sha256sums=('cc08da2bf124e836890656c51090e87041d8947da864bcd8a2f750983b6ff34f') md5sums=('daedaeb79ec239323487565bce3f7ca2')
b2sums=('b3472b0f74b6aefc9aa5953758cb5d8cc6d92071c2d77f17e54a3a983b4ca72365c370c2e2bd57978785ab0632b3b5c3f79d91f9b3607c7aab381ed44b648155')
build() { build() {
R CMD INSTALL ${_pkgname}_${_pkgver}.tar.gz -l "${srcdir}" mkdir build
R CMD INSTALL -l build "$_pkgname"
} }
package() { package() {
install -dm0755 "${pkgdir}/usr/lib/R/library" install -d "$pkgdir/usr/lib/R/library"
cp -a --no-preserve=ownership "${_pkgname}" "${pkgdir}/usr/lib/R/library" cp -a --no-preserve=ownership "build/$_pkgname" "$pkgdir/usr/lib/R/library"
} }
# vim:set ts=2 sw=2 et:

View file

@ -1,12 +1,13 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
from lilaclib import * 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(): def pre_build():
for line in edit_file('PKGBUILD'): r_pre_build(_G)
if line.startswith('_pkgver='):
line = f'_pkgver={_G.newver}'
print(line)
update_pkgver_and_pkgrel(_G.newver.replace(':', '.').replace('-', '.'))
def post_build(): def post_build():
git_pkgbuild_commit() git_pkgbuild_commit()

View file

@ -4,13 +4,15 @@ maintainers:
email: kuoi@bioarchlinux.org email: kuoi@bioarchlinux.org
repo_depends: repo_depends:
- r-ggplot2 - r-ggplot2
- r-ggrastr
- r-ks - r-ks
- r-patchwork - r-patchwork
- r-seurat - r-seuratobject
- r-singlecellexperiment - r-singlecellexperiment
- r-summarizedexperiment - r-summarizedexperiment
update_on: update_on:
- regex: Nebulosa_([\d._-]+).tar.gz - source: rpkgs
source: regex pkgname: Nebulosa
url: https://bioconductor.org/packages/Nebulosa repo: bioc
md5: true
- alias: r - alias: r