mirror of
https://github.com/BioArchLinux/Packages.git
synced 2025-03-10 12:02:42 +00:00
r-monocle: use metadata checks
This commit is contained in:
parent
24eb607c53
commit
d6993e824c
3 changed files with 21 additions and 21 deletions
|
@ -3,14 +3,13 @@
|
||||||
_pkgname=monocle
|
_pkgname=monocle
|
||||||
_pkgver=2.30.1
|
_pkgver=2.30.1
|
||||||
pkgname=r-${_pkgname,,}
|
pkgname=r-${_pkgname,,}
|
||||||
pkgver=2.30.1
|
pkgver=${_pkgver//-/.}
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc='Clustering, differential expression, and trajectory analysis for single- cell RNA-Seq'
|
pkgdesc="Clustering, differential expression, and trajectory analysis for single- cell RNA-Seq"
|
||||||
arch=('x86_64')
|
arch=(x86_64)
|
||||||
url="https://bioconductor.org/packages/${_pkgname}"
|
url="https://bioconductor.org/packages/$_pkgname"
|
||||||
license=('Artistic2.0')
|
license=('Artistic-2.0')
|
||||||
depends=(
|
depends=(
|
||||||
r
|
|
||||||
r-biobase
|
r-biobase
|
||||||
r-biocgenerics
|
r-biocgenerics
|
||||||
r-biocviews
|
r-biocviews
|
||||||
|
@ -28,7 +27,6 @@ depends=(
|
||||||
r-pheatmap
|
r-pheatmap
|
||||||
r-plyr
|
r-plyr
|
||||||
r-proxy
|
r-proxy
|
||||||
r-qlcmatrix
|
|
||||||
r-rann
|
r-rann
|
||||||
r-rcpp
|
r-rcpp
|
||||||
r-reshape2
|
r-reshape2
|
||||||
|
@ -48,14 +46,15 @@ optdepends=(
|
||||||
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=('3503b014eb460f7dd9dd56b7e24b4696d672c4f1ea5eca87cd9595de51d16241')
|
md5sums=('d958f3bb9af54d59a472f6ee6ddae596')
|
||||||
|
b2sums=('06b8938300de4c4d1e482ad2e9fa26a6773ae22c7cdb256799f29a7038dca5a4f50a2365765c1e69a4127d625a66cd3b60b6359a7ccc9631a69e936ea1ee4094')
|
||||||
|
|
||||||
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:
|
|
||||||
|
|
|
@ -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()
|
||||||
|
|
|
@ -20,7 +20,6 @@ repo_depends:
|
||||||
- r-pheatmap
|
- r-pheatmap
|
||||||
- r-plyr
|
- r-plyr
|
||||||
- r-proxy
|
- r-proxy
|
||||||
- r-qlcmatrix
|
|
||||||
- r-rann
|
- r-rann
|
||||||
- r-rcpp
|
- r-rcpp
|
||||||
- r-reshape2
|
- r-reshape2
|
||||||
|
@ -31,7 +30,8 @@ repo_depends:
|
||||||
- r-vgam
|
- r-vgam
|
||||||
- r-viridis
|
- r-viridis
|
||||||
update_on:
|
update_on:
|
||||||
- regex: monocle_([\d._-]+).tar.gz
|
- source: rpkgs
|
||||||
source: regex
|
pkgname: monocle
|
||||||
url: https://bioconductor.org/packages/monocle
|
repo: bioc
|
||||||
|
md5: true
|
||||||
- alias: r
|
- alias: r
|
||||||
|
|
Loading…
Add table
Reference in a new issue