summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorViktor Drobot2020-03-09 02:20:58 +0300
committerViktor Drobot2020-03-09 02:20:58 +0300
commit0ccd88ad1ef4a952c9f572923197c89e89ae2ca4 (patch)
tree49c824f9cfbf102090aea1d8b61111ae6cdfcb86
parentffb43a7c2d83acec7a7b65b7176bc2ff1639c7ea (diff)
downloadaur-0ccd88ad1ef4a952c9f572923197c89e89ae2ca4.tar.gz
Fixed PKGBUILD
-rw-r--r--.SRCINFO14
-rw-r--r--PKGBUILD35
2 files changed, 28 insertions, 21 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 916ddc44c05..835b128b904 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,15 +1,19 @@
pkgbase = r-prodlim
pkgdesc = Product-Limit Estimation for Censored Event History Analysis
- pkgver = 2018.04.18
+ pkgver = 2019.11.13
pkgrel = 1
url = https://cran.r-project.org/package=prodlim
+ arch = i686
arch = x86_64
- license = GPL
- depends = r
+ license = GPL2
+ license = GPL3
+ makedepends = gcc
+ depends = r>=2.9.0
depends = r-rcpp>=0.11.5
+ depends = r-kernsmooth
depends = r-lava
- source = https://cran.r-project.org/src/contrib/prodlim_2018.04.18.tar.gz
- md5sums = 897e215d6029fc29dcbd9f1c2b757343
+ source = https://cran.r-project.org/src/contrib/prodlim_2019.11.13.tar.gz
+ md5sums = 4439266060d24ffef32a5e6bec3c01ef
pkgname = r-prodlim
diff --git a/PKGBUILD b/PKGBUILD
index 386a1824cc9..3cea5d10418 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,26 +1,29 @@
-# Maintainer: Alex Branham <branham@utexas.edu>
+# Maintainer: Viktor Drobot (aka dviktor) linux776 [at] gmail [dot] com
+# Contributor: Alex Branham <branham@utexas.edu>
+
_cranname=prodlim
-_cranver=2018.04.18
-_pkgtar=${_cranname}_${_cranver}.tar.gz
-pkgname=r-prodlim
+_cranver=2019.11.13
+pkgname=r-${_cranname,,}
pkgver=${_cranver//[:-]/.}
pkgrel=1
pkgdesc="Product-Limit Estimation for Censored Event History Analysis"
-arch=('x86_64')
+arch=(i686 x86_64)
url="https://cran.r-project.org/package=${_cranname}"
-license=('GPL')
-depends=('r' 'r-rcpp>=0.11.5' 'r-lava')
-
-
+license=(GPL2 GPL3)
+depends=('r>=2.9.0' 'r-rcpp>=0.11.5' r-kernsmooth r-lava)
+makedepends=(gcc)
+source=("https://cran.r-project.org/src/contrib/${_cranname}_${_cranver}.tar.gz")
+md5sums=('4439266060d24ffef32a5e6bec3c01ef')
-source=("https://cran.r-project.org/src/contrib/${_pkgtar}")
-md5sums=('897e215d6029fc29dcbd9f1c2b757343')
+build() {
+ cd "${srcdir}"
-build(){
- R CMD INSTALL ${_pkgtar} -l $srcdir
+ R CMD INSTALL ${_cranname}_${_cranver}.tar.gz -l ${srcdir}
}
+
package() {
- install -d "$pkgdir/usr/lib/R/library"
- cp -r "$srcdir/$_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"
+}