mirror of
https://github.com/BioArchLinux/Packages.git
synced 2025-03-10 12:02:42 +00:00
r-pbkrtest: fix depends, use metadata checks
This commit is contained in:
parent
cf2ef2f0af
commit
a1cc0ca742
3 changed files with 26 additions and 21 deletions
|
@ -3,33 +3,35 @@
|
|||
# Contributor: Taekyung Kim <Taekyung.Kim.Maths@gmail.com>
|
||||
|
||||
_pkgname=pbkrtest
|
||||
_pkgver=0.5.2
|
||||
_pkgver=0.5.3
|
||||
pkgname=r-${_pkgname,,}
|
||||
pkgver=0.5.2
|
||||
pkgrel=5
|
||||
pkgdesc='Parametric Bootstrap, Kenward-Roger and Satterthwaite Based Methods for Test in Mixed Models'
|
||||
arch=('any')
|
||||
url="https://cran.r-project.org/package=${_pkgname}"
|
||||
license=('GPL')
|
||||
pkgver=${_pkgver//-/.}
|
||||
pkgrel=0
|
||||
pkgdesc="Parametric Bootstrap, Kenward-Roger and Satterthwaite Based Methods for Test in Mixed Models"
|
||||
arch=(any)
|
||||
url="https://cran.r-project.org/package=$_pkgname"
|
||||
license=('GPL-2.0-or-later')
|
||||
depends=(
|
||||
r
|
||||
r-broom
|
||||
r-doby
|
||||
r-dplyr
|
||||
r-lme4
|
||||
r-numderiv
|
||||
)
|
||||
optdepends=(
|
||||
r-knitr
|
||||
r-markdown
|
||||
)
|
||||
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
|
||||
sha256sums=('8e79adf035a0fcf3c82145ad55847497379e009f7be880ba3007ebeb2e69b6e3')
|
||||
md5sums=('d4501121ded98c6ced803b89c7abe4d9')
|
||||
b2sums=('1d88cd24b7e28cb06de11b7d74d36cd46aa3b474c19ce1e960e18eaa5bbe304fa5f89e2df95971faef797f60ff571878dfbf546f088cd032577cb84e0a8c50d5')
|
||||
|
||||
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,11 +4,13 @@ maintainers:
|
|||
email: kuoi@bioarchlinux.org
|
||||
repo_depends:
|
||||
- r-broom
|
||||
- r-doby
|
||||
- r-dplyr
|
||||
- r-lme4
|
||||
- r-numderiv
|
||||
update_on:
|
||||
- regex: pbkrtest_([\d._-]+).tar.gz
|
||||
source: regex
|
||||
url: https://cran.r-project.org/package=pbkrtest
|
||||
- source: rpkgs
|
||||
pkgname: pbkrtest
|
||||
repo: cran
|
||||
md5: true
|
||||
- alias: r
|
||||
|
|
Loading…
Add table
Reference in a new issue