mirror of
https://github.com/BioArchLinux/Packages.git
synced 2025-03-10 12:02:42 +00:00
r-autonomics: use metadata checks
This commit is contained in:
parent
7cb5b00a9d
commit
b32233a974
3 changed files with 29 additions and 23 deletions
|
@ -3,16 +3,18 @@
|
|||
_pkgname=autonomics
|
||||
_pkgver=1.10.2
|
||||
pkgname=r-${_pkgname,,}
|
||||
pkgver=1.10.2
|
||||
pkgver=${_pkgver//-/.}
|
||||
pkgrel=1
|
||||
pkgdesc='Generifying and intuifying cross-platform omics analysis'
|
||||
arch=('any')
|
||||
url="https://bioconductor.org/packages/${_pkgname}"
|
||||
license=('GPL')
|
||||
pkgdesc="Generifying and intuifying cross-platform omics analysis"
|
||||
arch=(any)
|
||||
url="https://bioconductor.org/packages/$_pkgname"
|
||||
license=('GPL-3.0-only')
|
||||
depends=(
|
||||
r
|
||||
r-abind
|
||||
r-assertive
|
||||
r-assertive.base
|
||||
r-assertive.files
|
||||
r-assertive.numbers
|
||||
r-assertive.sets
|
||||
r-biocfilecache
|
||||
r-biocgenerics
|
||||
r-bit64
|
||||
|
@ -51,10 +53,8 @@ optdepends=(
|
|||
r-knitr
|
||||
r-lme4
|
||||
r-lmertest
|
||||
r-mass
|
||||
r-mixomics
|
||||
r-mpm
|
||||
r-nlme
|
||||
r-org.hs.eg.db
|
||||
r-org.mm.eg.db
|
||||
r-rcurl
|
||||
|
@ -68,14 +68,15 @@ optdepends=(
|
|||
r-testthat
|
||||
)
|
||||
source=("https://bioconductor.org/packages/release/bioc/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
|
||||
sha256sums=('a9a63c09f9f4de533f92c8b82fa3f2821f532fd0edb4e5ba467d6fb327d30fb2')
|
||||
md5sums=('9034c755764d54d8bf0eb0e330f4e54f')
|
||||
b2sums=('ed49786ceee54208e06c3447dc00f6babcafbc68c339f2bbd2fabc632f9311a0173abf5ba7353f128d42f95710e3dfc25465a606ad1c889200e3132b4329ac57')
|
||||
|
||||
build() {
|
||||
R CMD INSTALL ${_pkgname}_${_pkgver}.tar.gz -l "${srcdir}"
|
||||
mkdir build
|
||||
R CMD INSTALL -l build "$_pkgname"
|
||||
}
|
||||
|
||||
package() {
|
||||
install -dm0755 "${pkgdir}/usr/lib/R/library"
|
||||
cp -a --no-preserve=ownership "${_pkgname}" "${pkgdir}/usr/lib/R/library"
|
||||
install -d "$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
|
||||
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():
|
||||
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('-', '.'))
|
||||
r_pre_build(_G)
|
||||
|
||||
def post_build():
|
||||
git_pkgbuild_commit()
|
||||
|
|
|
@ -4,7 +4,10 @@ maintainers:
|
|||
email: kuoi@bioarchlinux.org
|
||||
repo_depends:
|
||||
- r-abind
|
||||
- r-assertive
|
||||
- r-assertive.base
|
||||
- r-assertive.files
|
||||
- r-assertive.numbers
|
||||
- r-assertive.sets
|
||||
- r-biocfilecache
|
||||
- r-biocgenerics
|
||||
- r-bit64
|
||||
|
@ -30,7 +33,8 @@ repo_depends:
|
|||
- r-summarizedexperiment
|
||||
- r-tidyr
|
||||
update_on:
|
||||
- regex: autonomics_([\d._-]+).tar.gz
|
||||
source: regex
|
||||
url: https://bioconductor.org/packages/autonomics
|
||||
- source: rpkgs
|
||||
pkgname: autonomics
|
||||
repo: bioc
|
||||
md5: true
|
||||
- alias: r
|
||||
|
|
Loading…
Add table
Reference in a new issue