updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / r-cran-igraph / PKGBUILD
blob9d833eb471fee7325dc48a47db717dbe49494207
1 # Maintainer: Oleg Smirnov <oleg.smirnov@gmail.com>
2 pkgname=r-cran-igraph
3 pkgver=0.5.5_2
4 pkgrel=1
5 pkgdesc="Network analysis and visualization"
6 url="http://cran.r-project.org/web/packages/igraph/index.html"
7 license=('GPL (>= 2)')
8 arch=('i686' 'x86_64')
9 makedepends=('gcc' 'gcc-fortran')
10 depends=('r' )
11 optdepends=('r-cran-graph' 'r-cran-rgl' 'r-cran-rsqlite' 'r-cran-digest')
12 source=(http://cran.r-project.org/src/contrib/igraph_0.5.5-2.tar.gz)
13 build() {
14     mkdir -p ${pkgdir}/usr/lib/R/library
15     cd ${srcdir}
16     R CMD INSTALL igraph -l ${pkgdir}/usr/lib/R/library
17     rm -f ${pkgdir}/usr/lib/R/library/R.css
18     for lic in "LICENSE" "LICENCE" "COPYING"; do
19         if [ -f ${srcdir}/igraph/${lic} ]; then
20             install -Dm644 ${srcdir}/igraph/${lic} ${pkgdir}/usr/share/licenses/r-cran-igraph/${lic}
21         fi
22     done
24 md5sums=('7d0bc1cf234a795d176b70e942713318')