summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c78ecaa0a177e9a44657dc714584239b4fa69121 (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
# Maintainer: Alexander Bocken <alexander@bocken.org>

_cranname=gtrendsR
_cranver=1.5.1
pkgname=r-${_cranname,,}
pkgver=${_cranver//[:-]/.}
pkgrel=2
pkgdesc="Perform and Display Google Trends Queries"
arch=('any')
url="https://cran.r-project.org/package=${_cranname}"
license=(GPL)
depends=('r>=3.5.0' r-ggplot2 r-jsonlite r-anytime r-curl)
optdepends=(r-knitr r-rmarkdown r-tinytest)
source=("https://cran.r-project.org/src/contrib/${_cranname}_${_cranver}.tar.gz")
sha256sums=(5d5c4e534e33c8a1908cee0a983675ac534d743e9b023a106d56bc750e636e15)

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