[arch-commits] Commit in r/trunk (PKGBUILD r.install)

Ronald van Haren ronald at archlinux.org
Wed Jul 20 03:19:13 EDT 2011


    Date: Wednesday, July 20, 2011 @ 03:19:13
  Author: ronald
Revision: 132100

upgpkg: r 2.13.1-1
update to 2.13.1; add install file; move config files to /etc and create symlinks; add config files to backup array (FS#21786)

Added:
  r/trunk/r.install
Modified:
  r/trunk/PKGBUILD

-----------+
 PKGBUILD  |   29 +++++++++++++++++------------
 r.install |   12 ++++++++++++
 2 files changed, 29 insertions(+), 12 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2011-07-20 07:13:12 UTC (rev 132099)
+++ PKGBUILD	2011-07-20 07:19:13 UTC (rev 132100)
@@ -4,39 +4,36 @@
 # Contributor: K. Piche <kpiche at rogers.com>
 
 pkgname=r
-pkgver=2.13.0
+pkgver=2.13.1
 pkgrel=1
-pkgdesc="R is a language and environment for statistical computing and graphics"
+pkgdesc="Language and environment for statistical computing and graphics"
 arch=('i686' 'x86_64')
 license=('GPL')
 url=('http://www.r-project.org/')
 depends=('blas' 'lapack' 'bzip2'  'libpng' 'libjpeg' 'libtiff'
          'ncurses' 'pcre' 'readline' 'zlib' 'perl' 'gcc-libs'
-         'tk' 'libxt' 'libxmu' 'pango')
+         'tk' 'libxt' 'libxmu' 'pango' 'xz')
 makedepends=('openjdk6' 'gcc-fortran')
+backup=('etc/R/Makeconf' 'etc/R/Renviron' 'etc/R/ldpaths' 'etc/R/repositories')
 options=('!makeflags')
 source=("http://cran.r-project.org/src/base/R-2/R-${pkgver}.tar.gz"
 	'r.desktop'
 	'r.png')
-sha1sums=('878510e8a5fa1ccd1e0c4af5866f5416f3c27469'
+install=r.install
+sha1sums=('8b9d48c7a654186064f369652ea34a085eff239b'
           '13aa29219bcaa102e575de8c1c8e0833d233e836'
           'a69a07ec363440efc18ce0a7f2af103375dea978')
-
 build() {
    cd ${srcdir}/R-${pkgver}
    sed -i 's|#define NeedFunctionPrototypes 0|#define NeedFunctionPrototypes 1|g' src/modules/X11/dataentry.c
    ./configure  --prefix=/usr \
 		--libdir=/usr/lib \
+		--sysconfdir=/etc/R \
 		--datarootdir=/usr/share \
 		  rsharedir=/usr/share/R/ \
 		  rincludedir=/usr/include/R/ \
-		  rdocdir=/usr/share/R/docs/ \
-                --with-gnu-ld \
-		--with-readline \
+		  rdocdir=/usr/share/doc/R/ \
                 --with-x \
-                --with-zlib \
-                --with-bzlib  \
-                --with-pcre \
 		--enable-R-shlib \
                 --with-lapack \
 		--with-blas \
@@ -60,4 +57,12 @@
 	${pkgdir}/usr/share/applications/r.desktop
   install -Dm644 ${srcdir}/r.png \
 	${pkgdir}/usr/share/pixmaps/r.png
- }
+
+  # move the config directory to /etc and create symlinks
+  install -d ${pkgdir}/etc/R
+  cd ${pkgdir}/usr/lib/R/etc
+  for i in *; do
+    mv -f ${i} ${pkgdir}/etc/R
+    ln -s /etc/R/${i} ${i}
+  done
+}

Added: r.install
===================================================================
--- r.install	                        (rev 0)
+++ r.install	2011-07-20 07:19:13 UTC (rev 132100)
@@ -0,0 +1,12 @@
+post_install() {
+  update-desktop-database -q
+}
+
+post_upgrade() {
+  post_install
+}
+
+post_remove() {
+  post_install
+}
+



More information about the arch-commits mailing list