summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO7
-rw-r--r--PKGBUILD33
2 files changed, 27 insertions, 13 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 7b05665fae6..a5efe8661c5 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -2,15 +2,18 @@ pkgbase = r-reshape2
pkgdesc = Flexibly Reshape Data: A Reboot of the Reshape Package
pkgver = 1.4.3
pkgrel = 1
- url = http://cran.r-project.org/web/packages/reshape2/index.html
+ url = https://cran.r-project.org/package=reshape2
arch = i686
arch = x86_64
license = MIT
+ makedepends = gcc
depends = r>=3.1
depends = r-plyr>=1.8.1
depends = r-rcpp
depends = r-stringr
- source = http://cran.r-project.org/src/contrib/reshape2_1.4.3.tar.gz
+ optdepends = r-covr
+ optdepends = r-testthat
+ source = https://cran.r-project.org/src/contrib/reshape2_1.4.3.tar.gz
md5sums = 8f35f5a2b7d4f081e9825f1095133288
pkgname = r-reshape2
diff --git a/PKGBUILD b/PKGBUILD
index d47cb58e75f..7d1db297e1c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,20 +1,31 @@
-# Maintainer: frichtlm <frichtlm@gmail.com>
+# Maintainer: Viktor Drobot (aka dviktor) linux776 [at] gmail [dot] com
+# Contribitor: frichtlm <frichtlm@gmail.com>
# Contribitor: wagnerflo <florian@wagner-flo.net>
+
_cranname=reshape2
_cranver=1.4.3
-pkgname=r-$_cranname
-pkgver=${_cranver}
+pkgname=r-${_cranname,,}
+pkgver=${_cranver//[:-]/.}
pkgrel=1
pkgdesc="Flexibly Reshape Data: A Reboot of the Reshape Package"
-url="http://cran.r-project.org/web/packages/${_cranname}/index.html"
-arch=('i686' 'x86_64')
-license=('MIT')
-depends=('r>=3.1' 'r-plyr>=1.8.1' 'r-rcpp' 'r-stringr')
-source=("http://cran.r-project.org/src/contrib/${_cranname}_${_cranver}.tar.gz")
+arch=(i686 x86_64)
+url="https://cran.r-project.org/package=${_cranname}"
+license=(MIT)
+depends=('r>=3.1' 'r-plyr>=1.8.1' r-rcpp r-stringr)
+makedepends=(gcc)
+optdepends=(r-covr r-testthat)
+source=("https://cran.r-project.org/src/contrib/${_cranname}_${_cranver}.tar.gz")
md5sums=('8f35f5a2b7d4f081e9825f1095133288')
+build() {
+ cd "${srcdir}"
+
+ R CMD INSTALL ${_cranname}_${_cranver}.tar.gz -l ${srcdir}
+}
+
package() {
- mkdir -p ${pkgdir}/usr/lib/R/library
- cd ${srcdir}
- R CMD INSTALL ${_cranname} -l ${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"
}