blob: d4eae42f685304a869412d81657cec07078e66b5 (
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
67
68
69
70
71
72
73
74
75
76
77
78
79
|
# Maintainer: Pekka Ristola <pekkarr [at] protonmail [dot] com>
# Contributor: Guoyi Zhang <guoyizhang at malacology dot net>
# Contributor: Alex Branham <branham@utexas.edu>
# Contributor: Phil Schaf <flying-sheep@web.de>
# Contributor: Oleg Smirnov <oleg.smirnov@gmail.com>
_pkgname=igraph
_pkgver=2.1.2
pkgname=r-${_pkgname,,}
pkgver=${_pkgver//-/.}
pkgrel=1
pkgdesc="Network Analysis and Visualization"
arch=(x86_64)
url="https://cran.r-project.org/package=$_pkgname"
license=('GPL-2.0-or-later')
depends=(
blas
glpk
gmp
lapack
libxml2
r-cli
r-lifecycle
r-magrittr
r-pkgconfig
r-rlang
r-vctrs
util-linux-libs
)
makedepends=(
gcc-fortran
r-cpp11
)
checkdepends=(
r-graph
r-rgl
r-testthat
r-vdiffr
)
optdepends=(
r-ape
r-callr
r-decor
r-digest
r-igraphdata
r-knitr
r-rgl
r-rmarkdown
r-scales
r-testthat
r-vdiffr
r-withr
)
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz"
"igraph-system-libs.patch")
md5sums=('664c804c8e35c47a868a761d8c72c085'
'0d690683d6e9713001bc552e94a14eb9')
b2sums=('fcc0f8aeb9ab6b747705fac2042d824fab461ac3a2150e57bd98a5ab54758e9ed71f826bebf4be7475ad57d55520ef79b0b29b6d77af430bf6ee08f777c429f4'
'b67f6c8e465afed8eacec72b0319ab4f69504aed8cfcdb494d44d74b79639d03abbda3be9c215fbb82d706ab8e448ae0d4a6666e829cef1ee59a8d227c8b4fdf')
prepare() {
# Build using system libraries
patch -Np1 -i igraph-system-libs.patch
}
build() {
mkdir build
R CMD INSTALL -l build "$_pkgname"
}
check() {
cd "$_pkgname/tests"
R_LIBS="$srcdir/build" NOT_CRAN=true Rscript --vanilla testthat.R
}
package() {
install -d "$pkgdir/usr/lib/R/library"
cp -a --no-preserve=ownership "build/$_pkgname" "$pkgdir/usr/lib/R/library"
}
|