summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 15d811b3e98df7295b846d902c0dc7cf1da381bc (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
# Maintainer: Guoyi Zhang <guoyizhang at malacology dot net>

_pkgname=tensor
_pkgver=1.5
pkgname=r-${_pkgname,,}
pkgver=${_pkgver//-/.}
pkgrel=10
pkgdesc="Tensor product of arrays"
arch=(any)
url="https://cran.r-project.org/package=$_pkgname"
license=('GPL-2.0-or-later')
depends=(
  r
)
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
md5sums=('067d8ce235aa25756d178f5548b39328')
b2sums=('2d0c14938aded2884d6033ab10614269898c3ceff8e933c403d580f70c57207853d57bdfbaefe8e3c3cc9a7fd4dee14c1135ace6c4529a25198bc4a9499fb769')

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"
}