blob: 3f8c41f823664a05867bc87e9dbd7d314f31e1e0 (
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
57
|
# Maintainer: Pekka Ristola <pekkarr [at] protonmail [dot] com>
# Contributor: Guoyi Zhang <guoyizhang at malacology dot net>
# Contributor: peippo <christoph+aur@christophfink.com>
# Contributor: Viktor Drobot (aka dviktor) linux776 [at] gmail [dot] com
# Contributor: Grey Christoforo <first name at last name dot net>
# Contributor: Kibouo <csonka.mihaly@hotmail.com>
# Contributor: Alex Branham <branham@utexas.edu>
_pkgname=openssl
_pkgver=2.4.2
pkgname=r-${_pkgname,,}
pkgver=${_pkgver//-/.}
pkgrel=1
pkgdesc="Toolkit for Encryption, Signatures and Certificates Based on OpenSSL"
arch=(x86_64)
url="https://cran.r-project.org/package=$_pkgname"
license=('MIT')
depends=(
openssl
r-askpass
)
checkdepends=(
r-curl
r-sodium
r-testthat
)
optdepends=(
r-curl
r-digest
r-jose
r-jsonlite
r-knitr
r-rmarkdown
r-sodium
r-testthat
)
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
md5sums=('748b0fa601173da477706803783b6943')
b2sums=('96092e9fe44ae4b9151e2e33cd049910d8abcfe12d9746f1cbd9d357885ec5ca987e4d51ce8e1e849755ecdf70ab7f5e7e25ed8cc44c20a4167bb3f6234a2647')
build() {
mkdir build
R CMD INSTALL -l build "$_pkgname"
}
#check() {
# cd "$_pkgname/tests"
# R_LIBS="$srcdir/build" NOT_CRAN=true Rscript --vanilla testthat.R
#}
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"
}
|