summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Branham2018-05-31 16:14:26 -0500
committerAlex Branham2018-05-31 16:14:26 -0500
commit8c1a724918567f2bfa8aef7769104f582f9602a2 (patch)
tree7d5f7d9d3887d50f064918444560ec7563d4fa7d
parent5fa664ee3d130ac23f9affa23d145e7c72a12269 (diff)
downloadaur-8c1a724918567f2bfa8aef7769104f582f9602a2.tar.gz
Package rename
-rw-r--r--.SRCINFO27
-rw-r--r--PKGBUILD35
2 files changed, 37 insertions, 25 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 15b4a351ec7..37ded56cba7 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,16 +1,21 @@
-# Generated by makepkg 5.0.0
-# Sat Feb 6 15:57:00 UTC 2016
-pkgbase = r-cran-xtable
- pkgdesc = Export tables to LaTeX or HTML
- pkgver = 1.8_2
+pkgbase = r-xtable
+ pkgdesc = Export Tables to LaTeX or HTML
+ pkgver = 1.8.2
pkgrel = 1
- url = http://cran.r-project.org/web/packages/xtable/index.html
- arch = i686
- arch = x86_64
- license = GPL2
+ url = https://cran.r-project.org/package=xtable
+ arch = any
+ license = GPL
depends = r
- source = http://cran.r-project.org/src/contrib/xtable_1.8-2.tar.gz
+ optdepends = r-knitr
+ optdepends = r-lsmeans
+ 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-2.tar.gz
md5sums = 239e4825cd046156a67efae3aac01d86
-pkgname = r-cran-xtable
+pkgname = r-xtable
diff --git a/PKGBUILD b/PKGBUILD
index b02e4b2c1a4..3d055af506a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,20 +1,27 @@
-#Maintainer: Orphan
-#generated by: fordprefect <fordprefect@dukun.de>
+# Maintainer: Alex Branham <branham@utexas.edu>
_cranname=xtable
_cranver=1.8-2
-pkgname=r-cran-$_cranname
-pkgver=1.8_2
+_pkgtar=${_cranname}_${_cranver}.tar.gz
+pkgname=r-xtable
+pkgver=${_cranver//[:-]/.}
pkgrel=1
-pkgdesc="Export tables to LaTeX or HTML"
-url="http://cran.r-project.org/web/packages/${_cranname}/index.html"
-arch=('i686' 'x86_64')
-license=('GPL2')
-depends=('r')
-source=("http://cran.r-project.org/src/contrib/${_cranname}_${_cranver}.tar.gz")
+pkgdesc="Export Tables to LaTeX or HTML"
+arch=('any')
+url="https://cran.r-project.org/package=${_cranname}"
+license=('GPL')
+depends=('r' )
+
+optdepends=('r-knitr' 'r-lsmeans' 'r-spdep' 'r-splm' 'r-sphet' 'r-plm' 'r-zoo')
+
+source=("https://cran.r-project.org/src/contrib/${_pkgtar}")
md5sums=('239e4825cd046156a67efae3aac01d86')
-
+replaces=('r-cran-xtable')
+
+build(){
+ R CMD INSTALL ${_pkgtar} -l $srcdir
+}
package() {
- mkdir -p ${pkgdir}/usr/lib/R/library
- cd ${srcdir}
- R CMD INSTALL ${_cranname} -l ${pkgdir}/usr/lib/R/library
+ install -d "$pkgdir/usr/lib/R/library"
+ cp -r "$srcdir/$_cranname" "$pkgdir/usr/lib/R/library"
}
+