blob: ae99a1e49b78d47d24d726f8c54f6704a8473ddd (
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.6.0
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=('8171ad2752f974abfafdc544e5bfa757')
b2sums=('42f0cda67349fc7f5732cb52b5aff36a827ee8fd76d293676d4877c539b3df6ef0ef134ab7406ffda2d4813116ca5398f0720b1f3f233886fdc7ae5042c1d54f')
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"
}
|