diff options
author | Viktor Drobot | 2020-03-09 22:18:57 +0300 |
---|---|---|
committer | Viktor Drobot | 2020-03-09 22:18:57 +0300 |
commit | 96037f757b45fe470549ad093074f0ff75e7a426 (patch) | |
tree | 461c5798a43acd08f482d598c3aeaf455a4ef483 | |
parent | 61f7e6124d68aafd8a8cb27b18ac7c2fd24da205 (diff) | |
download | aur-96037f757b45fe470549ad093074f0ff75e7a426.tar.gz |
Fixed PKGBUILD
-rw-r--r-- | PKGBUILD | 33 |
1 files changed, 18 insertions, 15 deletions
@@ -1,26 +1,29 @@ -# Maintainer: Alex Branham <branham@utexas.edu> +# Maintainer: Viktor Drobot (aka dviktor) linux776 [at] gmail [dot] com +# Contributor: Alex Branham <branham@utexas.edu> + _cranname=rex _cranver=1.1.2 -_pkgtar=${_cranname}_${_cranver}.tar.gz -pkgname=r-rex +pkgname=r-${_cranname,,} pkgver=${_cranver//[:-]/.} pkgrel=1 pkgdesc="Friendly Regular Expressions" -arch=('any') +arch=(any) url="https://cran.r-project.org/package=${_cranname}" -license=('MIT') -depends=('r' 'r-magrittr' 'r-lazyeval') - -optdepends=('r-testthat' 'r-knitr' 'r-rmarkdown' 'r-dplyr' 'r-ggplot2' 'r-hmisc' 'r-stringr' 'r-rvest' 'r-roxygen2' 'r-covr') - -source=("https://cran.r-project.org/src/contrib/${_pkgtar}") +license=(MIT) +depends=(r r-magrittr r-lazyeval) +optdepends=(r-testthat r-knitr r-rmarkdown r-dplyr r-ggplot2 r-hmisc r-stringr r-rvest r-roxygen2 r-covr) +source=("https://cran.r-project.org/src/contrib/${_cranname}_${_cranver}.tar.gz") md5sums=('8820b4d4fe3718f275847b6f2cf83689') -build(){ - R CMD INSTALL ${_pkgtar} -l $srcdir +build() { + cd "${srcdir}" + + R CMD INSTALL ${_cranname}_${_cranver}.tar.gz -l ${srcdir} } + package() { - install -d "$pkgdir/usr/lib/R/library" - cp -r "$srcdir/$_cranname" "$pkgdir/usr/lib/R/library" -} + cd "${srcdir}" + install -dm0755 "${pkgdir}/usr/lib/R/library" + cp -a --no-preserve=ownership "${_cranname}" "${pkgdir}/usr/lib/R/library" +} |