summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorxgdgsc2016-03-22 09:13:02 +0800
committerxgdgsc2016-03-22 09:13:02 +0800
commit6e51d188ad1411c9cfae964c69ec3886b91bac12 (patch)
treeb8abd77344a0a6e30bad4a95f4d7bd72a9057309
parent12b98af1b26e122db90d898cca92078f7d6d12f4 (diff)
downloadaur-6e51d188ad1411c9cfae964c69ec3886b91bac12.tar.gz
change install to /opt
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD35
-rw-r--r--r.desktop5
3 files changed, 24 insertions, 22 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 8f7bff7d5af..f939999da03 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,5 +1,5 @@
# Generated by mksrcinfo v8
-# Sat Feb 20 12:27:20 UTC 2016
+# Tue Mar 22 01:13:00 UTC 2016
pkgbase = r-devel
pkgdesc = Language and environment for statistical computing and graphics
pkgver = latest
@@ -43,8 +43,8 @@ pkgbase = r-devel
source = r.desktop
source = r.png
source = R.conf
- sha1sums = SKIP
- sha1sums = d7fa521345b230a4187d60d07d06ce4b6d573e3f
+ sha1sums = be3bd5f00318e5b3883b280ad4367d95b2050278
+ sha1sums = f5a9e7f53d1a45a5be4e61bad0f2727ea35d6b92
sha1sums = a69a07ec363440efc18ce0a7f2af103375dea978
sha1sums = a2a2d672b4b123d8305666444680cb4f6909261b
diff --git a/PKGBUILD b/PKGBUILD
index 361adfdc345..0ad1ab226f6 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -22,8 +22,8 @@ source=("ftp://ftp.stat.math.ethz.ch/Software/R/R-devel.tar.gz"
'r.desktop'
'r.png'
'R.conf')
-sha1sums=('SKIP'
- 'd7fa521345b230a4187d60d07d06ce4b6d573e3f'
+sha1sums=('be3bd5f00318e5b3883b280ad4367d95b2050278'
+ 'f5a9e7f53d1a45a5be4e61bad0f2727ea35d6b92'
'a69a07ec363440efc18ce0a7f2af103375dea978'
'a2a2d672b4b123d8305666444680cb4f6909261b')
@@ -37,13 +37,13 @@ prepare() {
build() {
cd R-devel
- ./configure --prefix=/usr/local \
- --libdir=/usr/local/lib \
+ ./configure --prefix=/opt/r-devel \
+ --libdir=/opt/r-devel/lib \
--sysconfdir=/etc/R-devel \
- --datarootdir=/usr/local/share \
- rsharedir=/usr/local/share/R/ \
- rincludedir=/usr/local/include/R/ \
- rdocdir=/usr/local/share/doc/R/ \
+ --datarootdir=/opt/r-devel/share \
+ rsharedir=/opt/r-devel/share/R/ \
+ rincludedir=/opt/r-devel/include/R/ \
+ rdocdir=/opt/r-devel/share/doc/R/ \
--with-x \
--enable-R-shlib \
--with-lapack \
@@ -66,24 +66,27 @@ package() {
make DESTDIR="${pkgdir}" install
# Fixup R wrapper scripts.
- sed -i "s|${pkgdir} ||" "${pkgdir}/usr/local/bin/R"
- # rm "${pkgdir}/usr/local/lib/R/bin/R"
- cd "${pkgdir}/usr/local/lib/R/bin"
+ sed -i "s|${pkgdir} ||" "${pkgdir}/opt/r-devel/bin/R"
+ # rm "${pkgdir}/opt/r-devel/lib/R/bin/R"
+ cd "${pkgdir}/opt/r-devel/lib/R/bin"
#ln -s ../../../local/bin/R-devel
#rename bin
- mv "${pkgdir}/usr/local/bin/R" "${pkgdir}/usr/local/bin/R-devel"
- mv "${pkgdir}/usr/local/bin/Rscript" "${pkgdir}/usr/local/bin/Rscript-devel"
+ mv "${pkgdir}/opt/r-devel/bin/R" "${pkgdir}/opt/r-devel/bin/R-devel"
+ mv "${pkgdir}/opt/r-devel/bin/Rscript" "${pkgdir}/opt/r-devel/bin/Rscript-devel"
+ mkdir -p "${pkgdir}/usr/bin/"
+ ln -s /opt/r-devel/bin/R-devel "${pkgdir}/usr/bin/R-devel"
+ ln -s /opt/r-devel/bin/Rscript-devel "${pkgdir}/usr/bin/Rscript-devel"
# install some freedesktop.org compatibility
install -Dm644 "${srcdir}/r.desktop" \
- "${pkgdir}/usr/local/share/applications/r.desktop"
+ "${pkgdir}/usr/share/applications/r-devel.desktop"
install -Dm644 "${srcdir}/r.png" \
- "${pkgdir}/usr/local/share/pixmaps/r.png"
+ "${pkgdir}/usr/share/pixmaps/r-devel.png"
# move the config directory to /etc and create symlinks
install -d "${pkgdir}/etc/R-devel"
- cd "${pkgdir}/usr/local/lib/R/etc"
+ cd "${pkgdir}/opt/r-devel/lib/R/etc"
for i in *; do
mv -f ${i} "${pkgdir}/etc/R-devel"
ln -s /etc/R/${i} ${i}
diff --git a/r.desktop b/r.desktop
index 7732c9bed1f..d2231b4697a 100644
--- a/r.desktop
+++ b/r.desktop
@@ -2,9 +2,8 @@
Name=R
GenericName=environment for statistical computing
Comment=language and environment for statistical computing and graphics
-Exec=R
-Icon=/usr/share/pixmaps/r.png
-DocPath=/usr/lib/R/doc/html/index.html
+Exec=R-devel
+Icon=/usr/share/pixmaps/r-devel.png
StartupNotify=true
Terminal=true
Type=Application