~dricottone/pkgbuilds

ref: 4c8b8d17ec1c3cdba21fc7955c17a16b4961e1e4 pkgbuilds/r-bit64/PKGBUILD -rw-r--r-- 751 bytes
4c8b8d17Dominic Ricottone Added r-evaluate 1 year, 28 days ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Contributor: Viktor Drobot (aka dviktor) linux776 [at] gmail [dot] com

_cranname=bit64
_cranver=4.0.5
pkgname=r-${_cranname,,}
pkgver=${_cranver//[:-]/.}
pkgrel=2
pkgdesc="A S3 Class for Vectors of 64bit Integers"
arch=(i686 x86_64)
url="https://cran.r-project.org/package=${_cranname}"
license=(GPL2 GPL3)
depends=('r>=3.0.1' 'r-bit>=4.0.0' r-methods r-stats r-utils)
source=("https://cran.r-project.org/src/contrib/${_cranname}_${_cranver}.tar.gz")
sha256sums=('25df6826ea5e93241c4874cad4fa8dadc87a40f4ff74c9107aa12a9e033e1578')

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

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

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