summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDrobot Viktor2019-05-14 18:52:46 +0300
committerDrobot Viktor2019-05-14 18:52:46 +0300
commit593110cae037a348cf170d14e304bfc070b4e034 (patch)
tree0adc80cc3695f5cf3085d2490462641b0d8b6e85
parent45c75dd2f7666ec5e29b75e272f2971f04ee4a11 (diff)
downloadaur-r-xtable.tar.gz
Initial release
-rw-r--r--.SRCINFO13
-rw-r--r--PKGBUILD35
2 files changed, 25 insertions, 23 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 398d9b0a631..4dee4ebe281 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,20 +1,17 @@
pkgbase = r-xtable
pkgdesc = Export Tables to LaTeX or HTML
- pkgver = 1.8.3
+ pkgver = 1.8.4
pkgrel = 1
url = https://cran.r-project.org/package=xtable
arch = any
- license = GPL
+ license = GPL3
depends = r
optdepends = r-knitr
- optdepends = r-spdep
- optdepends = r-splm
- optdepends = r-sphet
optdepends = r-plm
optdepends = r-zoo
- replaces = r-cran-xtable
- source = https://cran.r-project.org/src/contrib/xtable_1.8-3.tar.gz
- md5sums = 10f7aebbf39e64798c1042b2a57a39a0
+ optdepends = r-survival
+ source = http://cran.r-project.org/src/contrib/xtable_1.8-4.tar.gz
+ md5sums = 0a7da6c3b34b2974110a7d00fe9afa79
pkgname = r-xtable
diff --git a/PKGBUILD b/PKGBUILD
index 6085fb08d35..c566b76bae3 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,23 +1,28 @@
-# Maintainer: Alex Branham <branham@utexas.edu>
-_cranver=1.8-3
-pkgname=r-xtable
+# Maintainer: Viktor Drobot (aka dviktor) linux776 [at] gmail [dot] com
+
+_cranname=xtable
+_cranver=1.8-4
+pkgname=r-${_cranname}
pkgver=${_cranver//[:-]/.}
pkgrel=1
-pkgdesc='Export Tables to LaTeX or HTML'
+pkgdesc="Export Tables to LaTeX or HTML"
arch=('any')
-url='https://cran.r-project.org/package=xtable'
-license=('GPL')
-depends=('r' )
-optdepends=('r-knitr' 'r-spdep' 'r-splm' 'r-sphet' 'r-plm' 'r-zoo')
-replaces=('r-cran-xtable')
-source=("https://cran.r-project.org/src/contrib/xtable_"$_cranver".tar.gz")
-md5sums=('10f7aebbf39e64798c1042b2a57a39a0')
+url="https://cran.r-project.org/package=${_cranname}"
+license=('GPL3')
+depends=('r')
+optdepends=('r-knitr' 'r-plm' 'r-zoo' 'r-survival')
+source=("http://cran.r-project.org/src/contrib/${_cranname}_${_cranver}.tar.gz")
+md5sums=('0a7da6c3b34b2974110a7d00fe9afa79')
build(){
- R CMD INSTALL xtable_"$_cranver".tar.gz -l "$srcdir"
+ cd "${srcdir}"
+
+ R CMD INSTALL ${_cranname}_${_cranver}.tar.gz -l $srcdir
}
+
package() {
- install -dm0755 "$pkgdir"/usr/lib/R/library
- cp -a --no-preserve=ownership xtable "$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"
+}