mirror of
https://github.com/BioArchLinux/Packages.git
synced 2025-03-10 12:02:42 +00:00
r-doby: fix depends, use metadata checks
This commit is contained in:
parent
930a27897c
commit
adea37bee5
3 changed files with 32 additions and 24 deletions
|
@ -1,42 +1,45 @@
|
||||||
# Maintainer: Guoyi Zhang <guoyizhang at malacology dot net>
|
# Maintainer: Guoyi Zhang <guoyizhang at malacology dot net>
|
||||||
|
|
||||||
_pkgname=doBy
|
_pkgname=doBy
|
||||||
_pkgver=4.6.20
|
_pkgver=4.6.21
|
||||||
pkgname=r-${_pkgname,,}
|
pkgname=r-${_pkgname,,}
|
||||||
pkgver=4.6.20
|
pkgver=${_pkgver//-/.}
|
||||||
pkgrel=2
|
pkgrel=0
|
||||||
pkgdesc='Groupwise Statistics, LSmeans, Linear Contrasts, Utilities'
|
pkgdesc="Groupwise Statistics, LSmeans, Linear Estimates, Utilities"
|
||||||
arch=('any')
|
arch=(any)
|
||||||
url="https://cran.r-project.org/package=${_pkgname}"
|
url="https://cran.r-project.org/package=$_pkgname"
|
||||||
license=('GPL')
|
license=('GPL-2.0-or-later')
|
||||||
depends=(
|
depends=(
|
||||||
r
|
|
||||||
r-broom
|
r-broom
|
||||||
|
r-cowplot
|
||||||
r-deriv
|
r-deriv
|
||||||
r-dplyr
|
r-dplyr
|
||||||
r-ggplot2
|
r-ggplot2
|
||||||
r-magrittr
|
|
||||||
r-microbenchmark
|
r-microbenchmark
|
||||||
|
r-modelr
|
||||||
r-pbkrtest
|
r-pbkrtest
|
||||||
|
r-rlang
|
||||||
r-tibble
|
r-tibble
|
||||||
|
r-tidyr
|
||||||
)
|
)
|
||||||
optdepends=(
|
optdepends=(
|
||||||
r-geepack
|
r-geepack
|
||||||
r-knitr
|
r-knitr
|
||||||
r-lme4
|
r-lme4
|
||||||
|
r-markdown
|
||||||
r-multcomp
|
r-multcomp
|
||||||
r-survival
|
|
||||||
r-testthat
|
r-testthat
|
||||||
)
|
)
|
||||||
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
|
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
|
||||||
sha256sums=('7a0a7fab5bcdd7e62e42a3d2f2d307519e635d48b626c5673f5344ff7ba2da22')
|
md5sums=('0430aff54f4be6fa47c7eca903d2f81b')
|
||||||
|
b2sums=('b2d58dbdf2e24b9ff21b8e27300414a001a35d9029adcc3d6aca12f88aca1dca690031b7867e178c6aee765d5d2d536a4be78b6a94dec2ef9ebad4b484883d5a')
|
||||||
|
|
||||||
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()
|
||||||
|
|
|
@ -4,15 +4,19 @@ maintainers:
|
||||||
email: kuoi@bioarchlinux.org
|
email: kuoi@bioarchlinux.org
|
||||||
repo_depends:
|
repo_depends:
|
||||||
- r-broom
|
- r-broom
|
||||||
|
- r-cowplot
|
||||||
- r-deriv
|
- r-deriv
|
||||||
- r-dplyr
|
- r-dplyr
|
||||||
- r-ggplot2
|
- r-ggplot2
|
||||||
- r-magrittr
|
|
||||||
- r-microbenchmark
|
- r-microbenchmark
|
||||||
|
- r-modelr
|
||||||
- r-pbkrtest
|
- r-pbkrtest
|
||||||
|
- r-rlang
|
||||||
- r-tibble
|
- r-tibble
|
||||||
|
- r-tidyr
|
||||||
update_on:
|
update_on:
|
||||||
- regex: doBy_([\d._-]+).tar.gz
|
- source: rpkgs
|
||||||
source: regex
|
pkgname: doBy
|
||||||
url: https://cran.r-project.org/package=doBy
|
repo: cran
|
||||||
|
md5: true
|
||||||
- alias: r
|
- alias: r
|
||||||
|
|
Loading…
Add table
Reference in a new issue