mirror of
https://github.com/BioArchLinux/Packages.git
synced 2025-03-10 12:02:42 +00:00
82 lines
1.8 KiB
Bash
82 lines
1.8 KiB
Bash
# 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=1.6.0
|
|
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=(
|
|
arpack
|
|
blas
|
|
glpk
|
|
gmp
|
|
lapack
|
|
libxml2
|
|
plfit
|
|
r-cli
|
|
r-lifecycle
|
|
r-magrittr
|
|
r-pkgconfig
|
|
r-rlang
|
|
suitesparse
|
|
util-linux-libs
|
|
)
|
|
makedepends=(
|
|
r-cpp11
|
|
)
|
|
checkdepends=(
|
|
r-graph
|
|
r-testthat
|
|
r-vdiffr
|
|
)
|
|
optdepends=(
|
|
r-ape
|
|
r-callr
|
|
r-decor
|
|
r-digest
|
|
r-graph
|
|
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=('7fda567ea719475a17929dd3de6d0808'
|
|
'3863e3b0e1f9356f607103096c0b011c')
|
|
b2sums=('8f375dca16b07f1a14a146e86019f8472ff134ccc56b455811ecbd30f571a29bb8fa58b1bbc51fb2147964ebb04c9ceccf07b5d32d41481a83f20721b79bb773'
|
|
'c59255d9c21e66923b722eb41149269600025bde6c980ede9113e0177479c23461fb2d963a062dd5f2670d1316aafd2658204f23031fd01df9da4285739920ad')
|
|
|
|
prepare() {
|
|
cd "$_pkgname"
|
|
# Build using system libraries
|
|
patch -Np1 -i ../igraph-system-libs.patch
|
|
autoconf
|
|
}
|
|
|
|
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"
|
|
}
|