summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO10
-rw-r--r--PKGBUILD22
2 files changed, 17 insertions, 15 deletions
diff --git a/.SRCINFO b/.SRCINFO
index a1f980055248..d45e8906ad2a 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,15 +1,13 @@
pkgbase = r-pracma
pkgdesc = Provides a large number of functions.
- pkgver = 2.3.3
+ pkgver = 2.3.8
pkgrel = 1
url = https://cran.r-project.org/package=pracma
- arch = i686
- arch = x86_64
+ arch = any
license = GPL-2
license = GPL-3
depends = r>=3.1.0
- source = http://cran.r-project.org/src/contrib/pracma_2.3.3.tar.gz
- sha256sums = cf1f8d7724a385d9a2e1a5496d9ba0e9908940b85669fb2c506b9059722cb93c
+ source = http://cran.r-project.org/src/contrib/pracma_2.3.8.tar.gz
+ sha512sums = 67592275a802fd056e4a81311adce7ea86fa0d0787aeb3764580a3df3f2eac5df3c7e15c9f5dea9d00bbc3c9248e267ed346f4ef5d31979db2fbf93f6b2e6821
pkgname = r-pracma
-
diff --git a/PKGBUILD b/PKGBUILD
index ac5d9dde8d64..dcb22ab3b8a3 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,22 +1,26 @@
-# Maintainer: Thomas Ivesdal-Tronstad <thotro at lyse dot net>
-# Contributor Thomas Ivesdal-Tronstad <thotro at lyse dot net>
+# Maintainer: Robert Greener <me@r0bert.dev>
+# Contributor: Thomas Ivesdal-Tronstad <thotro at lyse dot net>
_cranname=pracma
-_cranver=2.3.3
+_cranver=2.3.8
pkgname=r-pracma
-pkgver=${_cranver}
+pkgver=${_cranver//[:-]/.}
pkgrel=1
pkgdesc="Provides a large number of functions."
url="https://cran.r-project.org/package=pracma"
-arch=('i686' 'x86_64')
+arch=("any")
license=('GPL-2' 'GPL-3')
depends=('r>=3.1.0')
optdepends=()
source=("http://cran.r-project.org/src/contrib/${_cranname}_${_cranver}.tar.gz")
-sha256sums=('cf1f8d7724a385d9a2e1a5496d9ba0e9908940b85669fb2c506b9059722cb93c')
+sha512sums=("67592275a802fd056e4a81311adce7ea86fa0d0787aeb3764580a3df3f2eac5df3c7e15c9f5dea9d00bbc3c9248e267ed346f4ef5d31979db2fbf93f6b2e6821")
+
+build() {
+ 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
+ install -dm0755 "${pkgdir}/usr/lib/R/library"
+
+ cp -a --no-preserve=ownership "${_cranname}" "${pkgdir}/usr/lib/R/library"
}