diff options
author | Viktor Drobot | 2020-01-31 18:29:07 +0300 |
---|---|---|
committer | Viktor Drobot | 2020-01-31 18:29:07 +0300 |
commit | 2920e4f13aa1ed1dd75dd596e02a9b3fc94043c5 (patch) | |
tree | 36cc40740125fc0bf61b8a7668b9be801ff3f1c3 | |
parent | c44ffb1501c3fc107c46cd7b88f0c3db67c43bef (diff) | |
download | aur-2920e4f13aa1ed1dd75dd596e02a9b3fc94043c5.tar.gz |
Fixed PKGBUILD
-rw-r--r-- | .SRCINFO | 11 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 32 |
3 files changed, 28 insertions, 19 deletions
@@ -2,11 +2,14 @@ pkgbase = r-stringi pkgdesc = Character String Processing Facilities pkgver = 1.4.5 pkgrel = 1 - url = http://cran.r-project.org/web/packages/stringi/index.html + url = https://cran.r-project.org/package=stringi + arch = i686 arch = x86_64 - license = GPL3 - depends = r - source = http://cran.r-project.org/src/contrib/stringi_1.4.5.tar.gz + license = custom + makedepends = gcc + depends = r>=2.14 + depends = icu>=55 + source = https://cran.r-project.org/src/contrib/stringi_1.4.5.tar.gz md5sums = 83434d4f28361417b653fae33ba721e5 pkgname = r-stringi 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,29 @@ +# Contributor: Viktor Drobot (aka dviktor) linux776 [at] gmail [dot] com # Contributor: Grey Christoforo <first name at last name dot net> -pkgname=r-stringi -_cran_name=stringi -pkgver=1.4.5 + +_cranname=stringi +_cranver=1.4.5 +pkgname=r-${_cranname,,} +pkgver=${_cranver//[:-]/.} pkgrel=1 pkgdesc="Character String Processing Facilities" -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") +arch=(i686 x86_64) +url="https://cran.r-project.org/package=${_cranname}" +license=(custom) +depends=('r>=2.14' 'icu>=55') +makedepends=(gcc) +source=("https://cran.r-project.org/src/contrib/${_cranname}_${_cranver}.tar.gz") md5sums=('83434d4f28361417b653fae33ba721e5') +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" } |