summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 903eae9cf630f596cf8c52d320d769844d770cd6 (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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# system requirements: OpenGL, GLU Library, XQuartz (on OSX), zlib(optional), libpng (>=1.2.9, optional), FreeType (optional),pandoc (>=1.14, needed for vignettes; if not present, markdownpackage will be used)
# Maintainer: Guoyi Zhang <guoyizhang at malacology dot net>
# Contributor: Robert Greener <me@r0bert.dev>
# Contributor: Viktor Drobot (aka dviktor) linux776 [at] gmail [dot] com

_pkgname=rgl
_pkgver=1.3.12
pkgname=r-${_pkgname,,}
pkgver=1.3.12
pkgrel=1
pkgdesc='3D Visualization Using OpenGL'
arch=('x86_64')
url="https://cran.r-project.org/package=${_pkgname}"
license=('GPL')
depends=(
  r
  r-base64enc
  r-htmltools
  r-htmlwidgets
  r-jsonlite
  r-knitr
  r-magrittr
  r-mime
  r-r6
  mesa
  glu
  pandoc
)
optdepends=(
  freetype2
  libpng
  r-alphashape3d
  r-chromote
  r-crosstalk
  r-deldir
  r-downlit
  r-extrafont
  r-interp
  r-jpeg
  r-js
  r-lattice
  r-magick
  r-manipulatewidget
  r-markdown
  r-mass
  r-misc3d
  r-orientlib
  r-pkgdown
  r-plotrix
  r-png
  r-rmarkdown
  r-shiny
  r-tcltk
  r-testthat
  r-tripack
  r-v8
  r-waldo
  r-webshot2
)
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
sha256sums=('0c9ffa6e8d9dbe839930e766c37caef6a9a98a2341175e7df6da4dfc24641faf')

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

package() {
  install -dm0755 "${pkgdir}/usr/lib/R/library"
  cp -a --no-preserve=ownership "${_pkgname}" "${pkgdir}/usr/lib/R/library"
}
# vim:set ts=2 sw=2 et: