summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2e003a64c8949ed540171d172dc4764600de2bf2 (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
# Maintainer: Pekka Ristola <pekkarr [at] protonmail [dot] com>

_pkgname=scrypt
_pkgver=0.1.6
pkgname=r-${_pkgname,,}
pkgver=${_pkgver//-/.}
pkgrel=3
pkgdesc="Key Derivation Functions for R Based on Scrypt"
arch=(x86_64)
url="https://cran.r-project.org/package=$_pkgname"
license=('BSD-2-Clause')
depends=(
  r-rcpp
)
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
md5sums=('c3a4b02d972f92d056cdfe561c9a4b01')
b2sums=('d87a8e2938132edf0fafc35ee8331a17d69484e32175a0c0eb3bdab0f46250ac82142d66f71147eae8c62686796def7c6d08163944fa40396ca524f394cfb358')

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 -Dm644 "$_pkgname/LICENSE.note" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}