mirror of
https://github.com/BioArchLinux/Packages.git
synced 2025-03-10 12:02:42 +00:00
r-edger: use metadata checks
This commit is contained in:
parent
8c3ce037a7
commit
83b0612351
3 changed files with 31 additions and 23 deletions
|
@ -1,21 +1,20 @@
|
||||||
# system requirements: C++11
|
|
||||||
# Maintainer: Guoyi Zhang <guoyizhang at malacology dot net>
|
# Maintainer: Guoyi Zhang <guoyizhang at malacology dot net>
|
||||||
|
|
||||||
_pkgname=edgeR
|
_pkgname=edgeR
|
||||||
_pkgver=4.0.16
|
_pkgver=4.0.16
|
||||||
pkgname=r-${_pkgname,,}
|
pkgname=r-${_pkgname,,}
|
||||||
pkgver=4.0.16
|
pkgver=${_pkgver//-/.}
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc='Empirical Analysis of Digital Gene Expression Data in R'
|
pkgdesc="Empirical Analysis of Digital Gene Expression Data in R"
|
||||||
arch=('x86_64')
|
arch=(x86_64)
|
||||||
url="https://bioconductor.org/packages/${_pkgname}"
|
url="https://bioconductor.org/packages/$_pkgname"
|
||||||
license=('GPL')
|
license=('GPL-2.0-or-later')
|
||||||
depends=(
|
depends=(
|
||||||
r
|
blas
|
||||||
|
lapack
|
||||||
r-limma
|
r-limma
|
||||||
r-locfit
|
r-locfit
|
||||||
r-rcpp
|
r-rcpp
|
||||||
gcc
|
|
||||||
)
|
)
|
||||||
optdepends=(
|
optdepends=(
|
||||||
r-annotationdbi
|
r-annotationdbi
|
||||||
|
@ -23,23 +22,22 @@ optdepends=(
|
||||||
r-biocstyle
|
r-biocstyle
|
||||||
r-jsonlite
|
r-jsonlite
|
||||||
r-knitr
|
r-knitr
|
||||||
r-matrix
|
|
||||||
r-org.hs.eg.db
|
r-org.hs.eg.db
|
||||||
r-readr
|
r-readr
|
||||||
r-rhdf5
|
r-rhdf5
|
||||||
r-seuratobject
|
r-seuratobject
|
||||||
r-splines
|
|
||||||
r-summarizedexperiment
|
r-summarizedexperiment
|
||||||
)
|
)
|
||||||
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=('d145e4f8423632dbea1cf1c2e53ae72ea05a937924090f3c4aff6bcd035cd449')
|
md5sums=('8fb1c6c67e29d299c991d16d0f6c5f5b')
|
||||||
|
b2sums=('535ad59062196733724e9bbeca903a99f4de3201b807baa851b4a68c58240ec340439ea305e43e22951cd40d907453e7c7c4e08a27d69bd02d3444e9a0aae637')
|
||||||
|
|
||||||
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()
|
||||||
|
|
|
@ -7,7 +7,16 @@ repo_depends:
|
||||||
- r-locfit
|
- r-locfit
|
||||||
- r-rcpp
|
- r-rcpp
|
||||||
update_on:
|
update_on:
|
||||||
- regex: edgeR_([\d._-]+).tar.gz
|
- source: rpkgs
|
||||||
source: regex
|
pkgname: edgeR
|
||||||
url: https://bioconductor.org/packages/edgeR
|
repo: bioc
|
||||||
|
md5: true
|
||||||
- alias: r
|
- alias: r
|
||||||
|
- source: alpmfiles
|
||||||
|
pkgname: blas
|
||||||
|
filename: usr/lib/libblas\.so\.([^.]+)
|
||||||
|
repo: extra
|
||||||
|
- source: alpmfiles
|
||||||
|
pkgname: lapack
|
||||||
|
filename: usr/lib/liblapack\.so\.([^.]+)
|
||||||
|
repo: extra
|
||||||
|
|
Loading…
Add table
Reference in a new issue