[arch-commits] Commit in igraph/trunk (PKGBUILD)
Antonio Rojas
arojas at archlinux.org
Tue Feb 16 18:12:32 UTC 2021
Date: Tuesday, February 16, 2021 @ 18:12:32
Author: arojas
Revision: 862316
Update to 0.9.0
Modified:
igraph/trunk/PKGBUILD
----------+
PKGBUILD | 27 +++++++++++----------------
1 file changed, 11 insertions(+), 16 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-02-16 18:05:47 UTC (rev 862315)
+++ PKGBUILD 2021-02-16 18:12:32 UTC (rev 862316)
@@ -3,34 +3,29 @@
# Contributor: Denis Zawada <deno at bajtogrod.pl>
pkgname=igraph
-pkgver=0.8.5
+pkgver=0.9.0
pkgrel=1
pkgdesc="A library for creating and manipulating (un)directed graphs."
arch=(x86_64)
url="https://igraph.org/c/"
license=(GPL2)
-depends=(glpk arpack libxml2)
+depends=(glpk arpack libxml2 suitesparse)
+makedepends=(cmake)
source=("https://github.com/igraph/igraph/releases/download/$pkgver/$pkgname-$pkgver.tar.gz")
-sha256sums=('2e5da63a2b8e9bb497893a17cf77c691df1739c298664f8adb1310a01218f95b')
+sha256sums=('012e5d5a50420420588c33ec114c6b3000ccde544db3f25c282c1931c462ad7a')
build() {
- cd $pkgname-$pkgver
- ./configure \
- --prefix=/usr \
- --with-external-blas \
- --with-external-lapack \
- --with-external-arpack \
- --with-external-glpk
- sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool # Fix overlinking
- make
+ cmake -B build -S $pkgname-$pkgver \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE=None \
+ -DBUILD_SHARED_LIBS=ON
+ cmake --build build
}
check() {
- cd $pkgname-$pkgver
- make check
+ cmake --build build --target check
}
package() {
- cd $pkgname-$pkgver
- make DESTDIR="$pkgdir" install
+ DESTDIR="$pkgdir" cmake --install build
}
More information about the arch-commits
mailing list