blob: c76d55bc69dcb64bc0bc2f205f68d71a4ffc65bd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
# $Id$
# Contributor: Gergely Daróczi <gergely@snowl.net>
# Based on [r-devel@AUR](https://aur.archlinux.org/packages/r-devel) by Florian Breitwieser <florian.bw@gmail.com>
pkgname=r-devel-svn
pkgver=r68565
pkgrel=1
pkgdesc="Language and environment for statistical computing and graphics - development version (SVN)"
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' 'xz')
makedepends=('gcc-fortran')
conflicts=('r-devel') # r-devel.{png,desktop}, etc/r-devel /usr/bin entries
backup=("etc/r-devel/Makeconf" "etc/r-devel/Renviron" "etc/r-devel/ldpaths" "etc/r-devel/repositories")
options=('!makeflags')
_svnbranch=r-trunk
source=($_svnbranch::'svn+https://svn.r-project.org/R/trunk'
'r-devel.desktop'
'r-devel.png')
md5sums=('SKIP'
'db4aaeb54dec28f831e3fac64705d4be'
'8862f998939a07a2391840f99ab4a4f6')
install=r-devel.install
pkgver() {
cd ${_svnbranch}
local ver="$(svnversion)"
printf "r%s" "${ver//[[:alpha:]]}"
}
build() {
cd ${srcdir}/${_svnbranch}
./tools/rsync-recommended
./configure --prefix=/opt/r-devel \
--enable-R-shlib \
--with-lapack \
--with-blas \
F77=gfortran \
LIBnn=lib
make
}
package() {
cd ${srcdir}/${_svnbranch}
make -j1 DESTDIR=${pkgdir} install
# install some freedesktop.org compatibility
install -Dm644 ${srcdir}/r-devel.desktop ${pkgdir}/usr/share/applications/r-devel.desktop
install -Dm644 ${srcdir}/r-devel.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}/opt/r-devel/lib/R/etc
for i in *; do
mv -f ${i} ${pkgdir}/etc/r-devel
ln -s /etc/r-devel/${i} ${i}
done
# links
install -d ${pkgdir}/usr/bin
ln -s /opt/r-devel/bin/R ${pkgdir}/usr/bin/R-devel
ln -s /opt/r-devel/bin/Rscript ${pkgdir}/usr/bin/Rscript-devel
}
|