summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 82e9c6cf0933bb830f4b2569bc1e53d10426d609 (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
# Maintainer: Adam Schadler <ajschadler@gmail.com>

_cranname=doFuture
_cranver=1.0.1
pkgname=r-${_cranname,,}
pkgver=${_cranver//[:-]/.}
pkgrel=2
pkgdesc="Combines the best methods of both future and foreach for parallelization."
arch=('any')
url="https://cran.r-project.org/package=${_cranname}"
license=('LGPL-2.1-or-later')
depends=(
    'r'
    'r-foreach>=1.5.0'
    'r-future>=1.32.0'
    'r-future.apply'
    'r-globals'
    'r-iterators'
)
makedepends=()
optdepends=(
    'r-dorng>=1.8.2'
    'r-markdown'
    'r-r.rsp'
)
checkdepends=(${optdepends[@]})
source=("https://cran.r-project.org/src/contrib/${_cranname}_${_cranver}.tar.gz")
sha256sums=('9511cc9eb68366c5275dc03f769bcdd7507f26a79dc702d7ae6f1016f62c7bab')

build() {
    R CMD INSTALL ${_cranname}_${_cranver}.tar.gz -l "${srcdir}"
}

# Check requires optional dependencies
#check () {
#    R CMD check --no-manual -l "${srcdir}" "${_cranname}_${_cranver}.tar.gz"
#}

package() {
    install -dm0755 "${pkgdir}/usr/lib/R/library"

    cp -a --no-preserve=ownership "${_cranname}" "${pkgdir}/usr/lib/R/library"
}