summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorViktor Drobot2020-01-31 18:25:53 +0300
committerViktor Drobot2020-01-31 18:25:53 +0300
commit75caa557b1e6afb2d9e98642195e7b461916f221 (patch)
tree2d55f9e7fb31517f8f9e526c440f4c4d3738178d
parent0b12cecd0994e628ec2abce4e415f63851f9551f (diff)
downloadaur-75caa557b1e6afb2d9e98642195e7b461916f221.tar.gz
Fixed PKGBUILD
-rw-r--r--.SRCINFO20
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD35
3 files changed, 38 insertions, 21 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 54988604983..d181544713e 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,13 +1,23 @@
pkgbase = r-rlang
pkgdesc = Functions for Base Types and Core R and 'Tidyverse' Features
- pkgver = 0.4.2
+ pkgver = 0.4.4
pkgrel = 1
- url = http://cran.r-project.org/web/packages/rlang/index.html
+ url = https://cran.r-project.org/package=rlang
+ arch = i686
arch = x86_64
license = GPL3
- depends = r
- source = http://cran.r-project.org/src/contrib/rlang_0.4.2.tar.gz
- md5sums = 048b5aa06cfa642b924fd42e7592e4d3
+ makedepends = gcc
+ depends = r>=3.2.0
+ optdepends = r-cli
+ optdepends = r-covr
+ optdepends = r-crayon
+ optdepends = r-glue
+ optdepends = r-magrittr
+ optdepends = r-pillar
+ optdepends = r-rmarkdown
+ optdepends = r-testthat
+ source = https://cran.r-project.org/src/contrib/rlang_0.4.4.tar.gz
+ md5sums = ae3a2e3bcfc459fa3e6cdfa6950a8562
pkgname = r-rlang
diff --git a/.gitignore b/.gitignore
deleted file mode 100644
index 6ae0b18a1f6..00000000000
--- a/.gitignore
+++ /dev/null
@@ -1,4 +0,0 @@
-/pkg
-/src
-*.tar.gz
-*.tar.xz
diff --git a/PKGBUILD b/PKGBUILD
index 5f514680eb4..ed4caeb4b91 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -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-rlang
-_cran_name=rlang
-pkgver=0.4.2
+
+_cranname=rlang
+_cranver=0.4.4
+pkgname=r-${_cranname,,}
+pkgver=${_cranver//[:-]/.}
pkgrel=1
pkgdesc="Functions for Base Types and Core R and 'Tidyverse' Features"
-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=('048b5aa06cfa642b924fd42e7592e4d3')
+arch=(i686 x86_64)
+url="https://cran.r-project.org/package=${_cranname}"
+license=(GPL3)
+depends=('r>=3.2.0')
+makedepends=(gcc)
+optdepends=(r-cli r-covr r-crayon r-glue r-magrittr r-pillar r-rmarkdown r-testthat)
+source=("https://cran.r-project.org/src/contrib/${_cranname}_${_cranver}.tar.gz")
+md5sums=('ae3a2e3bcfc459fa3e6cdfa6950a8562')
+
+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"
}