mirror of
https://github.com/BioArchLinux/Packages.git
synced 2025-03-10 12:02:42 +00:00
r-ggsurvfit: add new pkg
This commit is contained in:
parent
936ae2fd88
commit
b52eb92897
3 changed files with 78 additions and 0 deletions
46
BioArchLinux/r-ggsurvfit/PKGBUILD
Normal file
46
BioArchLinux/r-ggsurvfit/PKGBUILD
Normal file
|
@ -0,0 +1,46 @@
|
|||
# Maintainer: Shun Wang <shuonwang at gmail dot com>
|
||||
|
||||
_pkgname=ggsurvfit
|
||||
_pkgver=1.1.0
|
||||
pkgname=r-${_pkgname,,}
|
||||
pkgver=1.1.0
|
||||
pkgrel=1
|
||||
pkgdesc='Flexible Time-to-Event Figures'
|
||||
arch=('any')
|
||||
url="https://cran.r-project.org/package=${_pkgname}"
|
||||
license=('MIT')
|
||||
depends=(
|
||||
r
|
||||
r-broom
|
||||
r-cli
|
||||
r-dplyr
|
||||
r-ggplot2
|
||||
r-glue
|
||||
r-gtable
|
||||
r-patchwork
|
||||
r-survival
|
||||
r-tidyr
|
||||
)
|
||||
optdepends=(
|
||||
r-covr
|
||||
r-knitr
|
||||
r-rmarkdown
|
||||
r-scales
|
||||
r-spelling
|
||||
r-testthat
|
||||
r-tidycmprsk
|
||||
r-vdiffr
|
||||
r-withr
|
||||
)
|
||||
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
|
||||
sha256sums=('25670e2b7eeb1f61a2b7e8f76a48d5066e7afa4240773b6ec4cd8e185fda7830')
|
||||
|
||||
build() {
|
||||
R CMD INSTALL ${_pkgname}_${_pkgver}.tar.gz -l "${srcdir}"
|
||||
}
|
||||
|
||||
package() {
|
||||
install -dm0755 "${pkgdir}/usr/lib/R/library"
|
||||
cp -a --no-preserve=ownership "${_pkgname}" "${pkgdir}/usr/lib/R/library"
|
||||
}
|
||||
# vim:set ts=2 sw=2 et:
|
13
BioArchLinux/r-ggsurvfit/lilac.py
Normal file
13
BioArchLinux/r-ggsurvfit/lilac.py
Normal file
|
@ -0,0 +1,13 @@
|
|||
#!/usr/bin/env python3
|
||||
from lilaclib import *
|
||||
|
||||
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('-', '.'))
|
||||
|
||||
def post_build():
|
||||
git_pkgbuild_commit()
|
||||
update_aur_repo()
|
19
BioArchLinux/r-ggsurvfit/lilac.yaml
Normal file
19
BioArchLinux/r-ggsurvfit/lilac.yaml
Normal file
|
@ -0,0 +1,19 @@
|
|||
build_prefix: extra-x86_64
|
||||
maintainers:
|
||||
- github: shun2wang
|
||||
email: shuonwang@gmail.com
|
||||
repo_depends:
|
||||
- r-broom
|
||||
- r-cli
|
||||
- r-dplyr
|
||||
- r-ggplot2
|
||||
- r-glue
|
||||
- r-gtable
|
||||
- r-patchwork
|
||||
- r-survival
|
||||
- r-tidyr
|
||||
update_on:
|
||||
- regex: ggsurvfit_([\d._-]+).tar.gz
|
||||
source: regex
|
||||
url: https://cran.r-project.org/package=ggsurvfit
|
||||
- alias: r
|
Loading…
Add table
Reference in a new issue