mirror of
https://github.com/BioArchLinux/Packages.git
synced 2025-03-10 12:02:42 +00:00
r-mpo.db: use metadata checks
This commit is contained in:
parent
925ca2916b
commit
48367a3563
3 changed files with 46 additions and 29 deletions
|
@ -1,35 +1,44 @@
|
|||
# Maintainer: sukanka <su975853527@gmail.com>
|
||||
# Maintainer: Pekka Ristola <pekkarr [at] protonmail [dot] com>
|
||||
# Contributor: sukanka <su975853527@gmail.com>
|
||||
|
||||
_pkgname=MPO.db
|
||||
_pkgver=0.99.7
|
||||
pkgname=r-${_pkgname,,}
|
||||
pkgver=${_pkgver//[:-]/.}
|
||||
pkgver=${_pkgver//-/.}
|
||||
pkgrel=1
|
||||
pkgdesc='A set of annotation maps describing the Mouse Phenotype Ontology'
|
||||
arch=('any')
|
||||
pkgdesc="A set of annotation maps describing the Mouse Phenotype Ontology"
|
||||
arch=(any)
|
||||
url="https://bioconductor.org/packages/${_pkgname}"
|
||||
license=('Artistic2.0')
|
||||
license=(Artistic2.0)
|
||||
depends=(
|
||||
r
|
||||
r-annotationdbi
|
||||
r-annotationhub
|
||||
r-biocfilecache
|
||||
r-dbi
|
||||
)
|
||||
checkdepends=(
|
||||
r-testthat
|
||||
)
|
||||
optdepends=(
|
||||
r-knitr
|
||||
r-rmarkdown
|
||||
r-testthat
|
||||
)
|
||||
source=("https://bioconductor.org/packages/release/data/annotation/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
|
||||
md5sums=('1f1b83d5d03d69a82ca2b9e7179b537f')
|
||||
sha256sums=('74b3e8f0a3b5b896b5d0c944e3334c750a4404b800fa70da9a2aa1f066643974')
|
||||
|
||||
build() {
|
||||
R CMD INSTALL ${_pkgname}_${_pkgver}.tar.gz -l "${srcdir}"
|
||||
mkdir -p build
|
||||
R CMD INSTALL "$_pkgname" -l build
|
||||
}
|
||||
|
||||
check() {
|
||||
cd "$_pkgname/tests"
|
||||
R_LIBS="$srcdir/build" NOT_CRAN=true Rscript --vanilla testthat.R
|
||||
}
|
||||
|
||||
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:
|
||||
|
|
14
BioArchLinux/r-mpo.db/lilac.py
Normal file
14
BioArchLinux/r-mpo.db/lilac.py
Normal file
|
@ -0,0 +1,14 @@
|
|||
#!/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():
|
||||
r_pre_build(_G)
|
||||
|
||||
def post_build():
|
||||
git_pkgbuild_commit()
|
||||
update_aur_repo()
|
|
@ -1,23 +1,17 @@
|
|||
build_prefix: extra-x86_64
|
||||
maintainers:
|
||||
- github: sukanka
|
||||
email: su975853527@gmail.com
|
||||
post_build_script: |
|
||||
git_pkgbuild_commit()
|
||||
update_aur_repo()
|
||||
pre_build_script: |
|
||||
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('-', '.'))
|
||||
- github: pekkarr
|
||||
email: pekkarr@protonmail.com
|
||||
repo_depends:
|
||||
- r-annotationdbi
|
||||
- r-annotationhub
|
||||
- r-biocfilecache
|
||||
- r-dbi
|
||||
- r-annotationdbi
|
||||
- r-annotationhub
|
||||
- r-biocfilecache
|
||||
- r-dbi
|
||||
repo_makedepends:
|
||||
- r-testthat
|
||||
update_on:
|
||||
- regex: MPO.db_([\d._-]+).tar.gz
|
||||
source: regex
|
||||
url: https://bioconductor.org/packages/MPO.db
|
||||
- alias: r
|
||||
- source: rpkgs
|
||||
pkgname: MPO.db
|
||||
repo: bioc-data-annotation
|
||||
md5: true
|
||||
- alias: r
|
||||
|
|
Loading…
Add table
Reference in a new issue