mirror of
https://github.com/BioArchLinux/Packages.git
synced 2025-03-10 12:02:42 +00:00
r-tenxplore: basically fixed
This commit is contained in:
parent
bdef4adf27
commit
2c40537e28
6 changed files with 69 additions and 4 deletions
34
BioArchLinux/r-restfulsedata/PKGBUILD
Normal file
34
BioArchLinux/r-restfulsedata/PKGBUILD
Normal file
|
@ -0,0 +1,34 @@
|
|||
# Maintainer: sukanka <su975853527@gmail.com>
|
||||
|
||||
_pkgname=restfulSEData
|
||||
_pkgver=1.18.0
|
||||
pkgname=r-${_pkgname,,}
|
||||
pkgver=${_pkgver//[:-]/.}
|
||||
pkgrel=1
|
||||
pkgdesc='Example metadata for the "restfulSE" R package'
|
||||
arch=('any')
|
||||
url="https://bioconductor.org/packages/${_pkgname}"
|
||||
license=('Artistic2.0')
|
||||
depends=(
|
||||
r
|
||||
r-delayedarray
|
||||
r-experimenthub
|
||||
r-hdf5array
|
||||
r-summarizedexperiment
|
||||
)
|
||||
optdepends=(
|
||||
r-knitr
|
||||
r-rmarkdown
|
||||
)
|
||||
source=("https://bioconductor.org/packages/release/data/experiment/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
|
||||
sha256sums=('dd29ef22c993164ffe66e254fe721cf69ddc1ed86c28beaaf046d0b6e1d9b124')
|
||||
|
||||
build() {
|
||||
R CMD INSTALL ${_pkgname}_${_pkgver}.tar.gz -l "${srcdir}"
|
||||
}
|
||||
|
||||
package() {
|
||||
install -dm0755 "${pkgdir}/usr/lib/R/library"
|
||||
cp -a --no-preserve=ownership "${_pkgname}" "${pkgdir}/usr/lib/R/library"
|
||||
}
|
||||
# vim:set ts=2 sw=2 et:
|
12
BioArchLinux/r-restfulsedata/lilac.yaml
Normal file
12
BioArchLinux/r-restfulsedata/lilac.yaml
Normal file
|
@ -0,0 +1,12 @@
|
|||
build_prefix: extra-x86_64
|
||||
maintainers:
|
||||
- github: sukanka
|
||||
repo_depends:
|
||||
- r-delayedarray
|
||||
- r-experimenthub
|
||||
- r-hdf5array
|
||||
- r-summarizedexperiment
|
||||
update_on:
|
||||
- regex: restfulSEData_([\d._-]+).tar.gz
|
||||
source: regex
|
||||
url: https://bioconductor.org/packages/restfulSEData
|
|
@ -1,9 +1,9 @@
|
|||
# Maintainer: Guoyi Zhang <guoyizhang at malacology dot net>
|
||||
|
||||
_pkgname=tenXplore
|
||||
_pkgver=1.16.0
|
||||
_pkgver=1.17.1
|
||||
pkgname=r-${_pkgname,,}
|
||||
pkgver=1.16.0
|
||||
pkgver=1.17.1
|
||||
pkgrel=1
|
||||
pkgdesc='ontological exploration of scRNA-seq of 1.3 million mouse neurons from 10x genomics'
|
||||
arch=('any')
|
||||
|
@ -26,10 +26,17 @@ optdepends=(
|
|||
r-testthat
|
||||
)
|
||||
source=("https://bioconductor.org/packages/release/bioc/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
|
||||
sha256sums=('ecd462b5be4453b93ce368a2211d6c41ebf010d87a772dbdb8fb9bd39eca9f83')
|
||||
sha256sums=('6eb1cbc6cfb4abe26b56b222de74f288858d926a53ea16e4728511c25f041bcd')
|
||||
|
||||
prepare(){
|
||||
# Do not import RESTfulSummarizedExperiment from RESTfulSE
|
||||
sed -i '/RESTfulSummarizedExperiment/d' ${_pkgname}/R/${_pkgname}.R ${_pkgname}/NAMESPACE
|
||||
tar -zcvf ${_pkgname}_${_pkgver}_1.tar.gz ${_pkgname}
|
||||
|
||||
}
|
||||
|
||||
build() {
|
||||
R CMD INSTALL ${_pkgname}_${_pkgver}.tar.gz -l "${srcdir}"
|
||||
R CMD INSTALL ${_pkgname}_${_pkgver}_1.tar.gz -l "${srcdir}"
|
||||
}
|
||||
|
||||
package() {
|
12
BioArchLinux/r-tenxplore/lilac.py
Normal file
12
BioArchLinux/r-tenxplore/lilac.py
Normal file
|
@ -0,0 +1,12 @@
|
|||
#!/usr/bin/env python3
|
||||
from lilaclib import *
|
||||
|
||||
def pre_build():
|
||||
for line in edit_file('PKGBUILD'):
|
||||
if line.startswith('_pkgver='):
|
||||
line = f'_pkgver={_G.newver}'
|
||||
print(line)
|
||||
update_pkgver_and_pkgrel(_G.newver.replace(':', '.').replace('-', '.'))
|
||||
|
||||
def post_build():
|
||||
git_pkgbuild_commit()
|
Loading…
Add table
Reference in a new issue