blob: 32eb2333b76efcee333aad14e4d69b37f92296d1 (
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
|
# Maintainer: Pekka Ristola <pekkarr [at] protonmail [dot] com>
# Contributor: Guoyi Zhang <guoyizhang at malacology dot net>
# Contributor: Viktor Drobot (aka dviktor) linux776 [at] gmail [dot] com
# Contributor: Alex Branham <alex.branham@gmail.com>
_pkgname=fs
_pkgver=1.6.7
pkgname=r-${_pkgname,,}
pkgver=${_pkgver//-/.}
pkgrel=1
pkgdesc="Cross-Platform File System Operations Based on 'libuv'"
arch=(x86_64)
url="https://cran.r-project.org/package=$_pkgname"
license=('MIT')
depends=(
libuv
r
)
optdepends=(
r-covr
r-crayon
r-knitr
r-pillar
r-rmarkdown
r-spelling
r-testthat
r-tibble
r-vctrs
r-withr
)
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz"
"system-libuv.patch")
md5sums=('55154826f970ab7c86dfaa9cf893e98c'
'312c9ec1662d8ebecd388a771ae1a903')
b2sums=('136786e1d7da7ae457a958dd288d24256072580c2410629075a725b0101e5a85c0cc75dac84f45b7ee78d5b1699c4eb71fad9399dbcbe81e12477b7281228b16'
'ac55bda314e4a9c184b820a7194b421bcac65ff739cf14c5d9af9004ec717fc99db159e0c02ff7060f2ed2a8f0147bc8f0a29d0cb1d760af5c057feb08c9c33a')
# prepare() {
# # build against system libuv
# patch -Np1 -i system-libuv.patch
# }
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"
install -d "$pkgdir/usr/share/licenses/$pkgname"
ln -s "/usr/lib/R/library/$_pkgname/LICENSE" "$pkgdir/usr/share/licenses/$pkgname"
}
|