diff options
author | Viktor Drobot | 2020-01-31 17:35:26 +0300 |
---|---|---|
committer | Viktor Drobot | 2020-01-31 17:35:26 +0300 |
commit | 82ee628f5b36efd49e0a3e8f335f3e8e59de2fdf (patch) | |
tree | c3333e0b748c8d0c71ae8e244be479d5cad8769f | |
parent | 994a11f4632584084434ab59a317c24d1cbd80f0 (diff) | |
download | aur-82ee628f5b36efd49e0a3e8f335f3e8e59de2fdf.tar.gz |
Fixed PKGBUILD
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 35 |
3 files changed, 34 insertions, 21 deletions
@@ -1,13 +1,19 @@ pkgbase = r-fansi pkgdesc = ANSI Control Sequence Aware String Functions - pkgver = 0.4.0 + pkgver = 0.4.1 pkgrel = 1 - url = http://cran.r-project.org/web/packages/fansi/index.html + url = https://cran.r-project.org/package=fansi + arch = i686 arch = x86_64 + license = GPL2 license = GPL3 - depends = r - source = http://cran.r-project.org/src/contrib/fansi_0.4.0.tar.gz - md5sums = 8642a7132e7c2f64ce60a67f2c05304b + makedepends = gcc + depends = r>=3.1.0 + optdepends = r-unitizer + optdepends = r-knitr + optdepends = r-rmarkdown + source = https://cran.r-project.org/src/contrib/fansi_0.4.1.tar.gz + md5sums = 725fb99ed2e21699ffbf00b1b45a4b81 pkgname = r-fansi diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 6ae0b18a1f6c..000000000000 --- a/.gitignore +++ /dev/null @@ -1,4 +0,0 @@ -/pkg -/src -*.tar.gz -*.tar.xz @@ -1,19 +1,30 @@ +# Contributor: Viktor Drobot (aka dviktor) linux776 [at] gmail [dot] com # Contributor: Grey Christoforo <first name at last name dot net> -pkgname=r-fansi -_cran_name=fansi -pkgver=0.4.0 + +_cranname=fansi +_cranver=0.4.1 +pkgname=r-${_cranname,,} +pkgver=${_cranver//[:-]/.} pkgrel=1 pkgdesc="ANSI Control Sequence Aware String Functions" -arch=('x86_64') -url="http://cran.r-project.org/web/packages/${_cran_name}/index.html" -license=('GPL3') -depends=('r') -source=("http://cran.r-project.org/src/contrib/${_cran_name}_${pkgver}.tar.gz") -md5sums=('8642a7132e7c2f64ce60a67f2c05304b') +arch=(i686 x86_64) +url="https://cran.r-project.org/package=${_cranname}" +license=(GPL2 GPL3) +depends=('r>=3.1.0') +makedepends=(gcc) +optdepends=(r-unitizer r-knitr r-rmarkdown) +source=("https://cran.r-project.org/src/contrib/${_cranname}_${_cranver}.tar.gz") +md5sums=('725fb99ed2e21699ffbf00b1b45a4b81') + +build() { + cd "${srcdir}" + + R CMD INSTALL ${_cranname}_${_cranver}.tar.gz -l ${srcdir} +} package() { - mkdir -p $pkgdir/usr/lib/R/library - cd $srcdir + cd "${srcdir}" - R CMD INSTALL -l $pkgdir/usr/lib/R/library ./${_cran_name} + install -dm0755 "${pkgdir}/usr/lib/R/library" + cp -a --no-preserve=ownership "${_cranname}" "${pkgdir}/usr/lib/R/library" } |