summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorViktor Drobot2020-03-09 01:40:44 +0300
committerViktor Drobot2020-03-09 01:40:44 +0300
commit2c1d207a1dc6df5cce85764c82d6c58a8de56017 (patch)
tree5f078421bbe39fa9b0d8108937c9b33462bcc948
parent254613b789563a69db4c9c25465ba17c31e989d3 (diff)
downloadaur-2c1d207a1dc6df5cce85764c82d6c58a8de56017.tar.gz
Fixed PKGBUILD
-rw-r--r--.SRCINFO7
-rw-r--r--PKGBUILD32
2 files changed, 22 insertions, 17 deletions
diff --git a/.SRCINFO b/.SRCINFO
index f13f7aeb21e..f39586ad7ca 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -5,8 +5,9 @@ pkgbase = r-rcpp
url = https://cran.r-project.org/package=Rcpp
arch = i686
arch = x86_64
- license = GPL-2
- license = GPL-3
+ license = GPL2
+ license = GPL3
+ makedepends = gcc
depends = r>=3.0.0
optdepends = r-runit
optdepends = r-inline
@@ -15,7 +16,7 @@ pkgbase = r-rcpp
optdepends = r-rmarkdown
optdepends = r-pinp
optdepends = r-pkgkitten
- source = http://cran.r-project.org/src/contrib/Rcpp_1.0.3.tar.gz
+ source = https://cran.r-project.org/src/contrib/Rcpp_1.0.3.tar.gz
md5sums = 0171ac73ab1635df72395dcc5450d48d
pkgname = r-rcpp
diff --git a/PKGBUILD b/PKGBUILD
index 16b8469c06b..52adaa41333 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,26 +1,30 @@
-# Maintainer: Matt Frichtl <frichtlm@gmail.com>
+# Maintainer: Viktor Drobot (aka dviktor) linux776 [at] gmail [dot] com
+# Contributor: Matt Frichtl <frichtlm@gmail.com>
+
_cranname=Rcpp
_cranver=1.0.3
-pkgname=r-rcpp
-pkgver=${_cranver}
+pkgname=r-${_cranname,,}
+pkgver=${_cranver//[:-]/.}
pkgrel=1
pkgdesc="Seamless R and C++ Integration"
-url="https://cran.r-project.org/package=Rcpp"
-arch=('i686' 'x86_64')
-license=('GPL-2' 'GPL-3')
+arch=(i686 x86_64)
+url="https://cran.r-project.org/package=${_cranname}"
+license=(GPL2 GPL3)
depends=('r>=3.0.0')
-optdepends=('r-runit' 'r-inline' 'r-rbenchmark' 'r-knitr' 'r-rmarkdown' 'r-pinp' 'r-pkgkitten')
-source=("http://cran.r-project.org/src/contrib/${_cranname}_${_cranver}.tar.gz")
-#source=("http://cran.r-project.org/src/contrib/Arcive/${_cranname}_${_cranver}.tar.gz") # uncomment if 404 error
+makedepends=(gcc)
+optdepends=(r-runit r-inline r-rbenchmark r-knitr r-rmarkdown r-pinp r-pkgkitten)
+source=("https://cran.r-project.org/src/contrib/${_cranname}_${_cranver}.tar.gz")
md5sums=('0171ac73ab1635df72395dcc5450d48d')
build() {
- cd "${srcdir}"
- R CMD INSTALL ${_cranname}_${_cranver}.tar.gz -l $srcdir
+ cd "${srcdir}"
+
+ R CMD INSTALL ${_cranname}_${_cranver}.tar.gz -l ${srcdir}
}
package() {
- cd "${srcdir}"
- install -dm0755 "$pkgdir/usr/lib/R/library"
- cp -a --no-preserve=ownership "$_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"
}