mirror of
https://github.com/BioArchLinux/Packages.git
synced 2025-03-10 12:02:42 +00:00
r-mirt: add new pkg
This commit is contained in:
parent
ad9749f0e2
commit
ccf7e3e7e5
3 changed files with 87 additions and 0 deletions
51
BioArchLinux/r-mirt/PKGBUILD
Normal file
51
BioArchLinux/r-mirt/PKGBUILD
Normal file
|
@ -0,0 +1,51 @@
|
||||||
|
# Maintainer: Shun Wang <shuonwang at gmail dot com>
|
||||||
|
|
||||||
|
_pkgname=mirt
|
||||||
|
_pkgver=1.43
|
||||||
|
pkgname=r-${_pkgname,,}
|
||||||
|
pkgver=${_pkgver//-/.}
|
||||||
|
pkgrel=1
|
||||||
|
pkgdesc="Multidimensional Item Response Theory"
|
||||||
|
arch=('any')
|
||||||
|
url="https://cran.r-project.org/package=$_pkgname"
|
||||||
|
license=('GPL-3.0-or-later')
|
||||||
|
depends=(
|
||||||
|
r-gparotation
|
||||||
|
r-gridextra
|
||||||
|
r-matrix
|
||||||
|
r-rcpp
|
||||||
|
r-mgcv
|
||||||
|
r-vegan
|
||||||
|
r-deriv
|
||||||
|
r-splines
|
||||||
|
r-pbapply
|
||||||
|
r-dcurver
|
||||||
|
r-simdesign
|
||||||
|
)
|
||||||
|
optdepends=(
|
||||||
|
r-boot
|
||||||
|
r-latticeextra
|
||||||
|
r-directlabels
|
||||||
|
r-shiny
|
||||||
|
r-knitr
|
||||||
|
r-markdown
|
||||||
|
r-rsolnp
|
||||||
|
r-nloptr
|
||||||
|
r-sirt
|
||||||
|
r-plink
|
||||||
|
r-mirtcat
|
||||||
|
r-testthat
|
||||||
|
)
|
||||||
|
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
|
||||||
|
md5sums=('a8bc44dbc3effaa5e87c8c0155bf6f96')
|
||||||
|
b2sums=('e5aade6a4c1c3a3fcefa2e715ffb8b6dd8aa1178069e341a85428f88ed2ba44397d5441ff13c787c31347676b4d74d5d0824a61e09cec01bdf0a8a8606f78525')
|
||||||
|
|
||||||
|
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-mirt/lilac.py
Normal file
14
BioArchLinux/r-mirt/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()
|
22
BioArchLinux/r-mirt/lilac.yaml
Normal file
22
BioArchLinux/r-mirt/lilac.yaml
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
build_prefix: extra-x86_64
|
||||||
|
maintainers:
|
||||||
|
- github: shun2wang
|
||||||
|
email: shuonwang@gmail.com
|
||||||
|
repo_depends:
|
||||||
|
- r-gparotation
|
||||||
|
- r-gridextra
|
||||||
|
- r-matrix
|
||||||
|
- r-rcpp
|
||||||
|
- r-mgcv
|
||||||
|
- r-vegan
|
||||||
|
- r-deriv
|
||||||
|
- r-splines
|
||||||
|
- r-pbapply
|
||||||
|
- r-dcurver
|
||||||
|
- r-simdesign
|
||||||
|
update_on:
|
||||||
|
- source: rpkgs
|
||||||
|
pkgname: mirt
|
||||||
|
repo: cran
|
||||||
|
md5: true
|
||||||
|
- alias: r
|
Loading…
Add table
Reference in a new issue