blob: 8c96631929e8d4f57e5c3aba058ab02516157e38 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
# Maintainer: Pekka Ristola <pekkarr [at] protonmail [dot] com>
# Contributor: sukanka <su975853527@gmail.com>
_pkgname=MatchIt
_pkgver=4.7.2
pkgname=r-${_pkgname,,}
pkgver=${_pkgver//-/.}
pkgrel=1
pkgdesc="Nonparametric Preprocessing for Parametric Causal Inference"
arch=(x86_64)
url="https://cran.r-project.org/package=$_pkgname"
license=('GPL-2.0-or-later')
depends=(
r-backports
r-chk
r-rcpp
r-rlang
)
makedepends=(
r-rcppprogress
)
optdepends=(
r-cbps
r-cobalt
r-dbarts
r-gbm
r-glmnet
r-gurobi
r-highs
r-knitr
r-marginaleffects
r-matching
r-optmatch
r-quickmatch
r-randomforest
r-rcppprogress
r-rgenoud
r-rglpk
r-rmarkdown
r-rsymphony
r-sandwich
r-testthat
)
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
md5sums=('a25b7a5f996ac8525faf5e8e6d69b053')
b2sums=('6c786e3a618fd028ccc4d12b5d3594609040582b86b4c9c609cd6d64f100e4c31e48b3d261355d116c82770246c33dc0dc7e51922c1466ece492ed3d3351d0da')
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"
}
|