mirror of
https://github.com/BioArchLinux/Packages.git
synced 2025-03-10 12:02:42 +00:00
r-semsens: add new pkgs
This commit is contained in:
parent
02b450acf0
commit
a234197409
3 changed files with 57 additions and 0 deletions
33
BioArchLinux/r-semsens/PKGBUILD
Normal file
33
BioArchLinux/r-semsens/PKGBUILD
Normal file
|
@ -0,0 +1,33 @@
|
|||
# Maintainer: Shun Wang <shuonwang at gmail dot com>
|
||||
|
||||
_pkgname=semsens
|
||||
_pkgver=1.5.5
|
||||
pkgname=r-${_pkgname,,}
|
||||
pkgver=${_pkgver//-/.}
|
||||
pkgrel=1
|
||||
pkgdesc="A Tool for Sensitivity Analysis in Structural Equation Modeling"
|
||||
arch=('any')
|
||||
url="https://cran.r-project.org/package=$_pkgname"
|
||||
license=('GPL-3.0-only')
|
||||
depends=(
|
||||
r
|
||||
r-lavaan
|
||||
r-stats
|
||||
)
|
||||
optdepends=(
|
||||
r-knitr
|
||||
r-rmarkdown
|
||||
)
|
||||
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
|
||||
md5sums=('7bd194fcca739c3f43b98e625f9c3582')
|
||||
b2sums=('808663ec01b6ae3ac7b35a37de3b61288f0050a293f146867341b0b9cf1fa9236fb32e45d2ef249b53d06e41817f0847a4fb256243531995d1dda60117d0eef1')
|
||||
|
||||
build() {
|
||||
mkdir build
|
||||
R CMD INSTALL -l build "$_pkgname"
|
||||
}
|
||||
|
||||
package() {
|
||||
install -d "$pkgdir/usr/lib/R/library"
|
||||
cp -a --no-preserve=ownership "build/$_pkgname" "$pkgdir/usr/lib/R/library"
|
||||
}
|
14
BioArchLinux/r-semsens/lilac.py
Normal file
14
BioArchLinux/r-semsens/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()
|
10
BioArchLinux/r-semsens/lilac.yaml
Normal file
10
BioArchLinux/r-semsens/lilac.yaml
Normal file
|
@ -0,0 +1,10 @@
|
|||
build_prefix: extra-x86_64
|
||||
maintainers:
|
||||
- github: shun2wang
|
||||
email: shuonwang@gmail.com
|
||||
update_on:
|
||||
- source: rpkgs
|
||||
pkgname: semsens
|
||||
repo: cran
|
||||
md5: true
|
||||
- alias: r
|
Loading…
Add table
Reference in a new issue