summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 34523630fa506c02784c4cb40752ab628ed9b0b9 (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
# Maintainer: Robert Greener <me@r0bert.dev>
_cranname=TraMineRextras
_cranver=0.6.4
_updatedate=2022-06-25
pkgname=r-${_cranname,,}
pkgver=${_cranver//[:-]/.}
pkgrel=1
pkgdesc="TraMineR Extension"
arch=(x86_64)
url="https://cran.r-project.org/package=${_cranname}"
license=(GPL)
depends=("r>=3.5.0" "r-traminer>=2.2.1")
makedepends=()
optdepends=(
	r-gtools
	r-cluster
	r-rcolorbrewer
	r-colorspace
	r-survival
	r-doparallel
	r-foreach
)
source=("https://cran.microsoft.com/snapshot/${_updatedate}/src/contrib/${_cranname}_${_cranver}.tar.gz")
sha256sums=('47e5b75ac9aa16a3b330f6ae5927031a52afe0dbce10cd91a5bbea7335a0d429')

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