blob: 498c084d3aebcb6f4a5355a2eb42d198827c4c0d (
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
|
# Maintainer: Carlos Aznarán <caznaranl@uni.pe>
# Contributor: Antonio Rojas <arojas@archlinux.org>
# Contributor: Jed Brown <jed@jedbrown.org>
# Contributor: George Eleftheriou <eleftg@gmail.com>
# Contributor: mickele
# Contributor: gborzi
# Contributor: abenson
# Contributor: Jakub Klinkovský <j.l.k cat gmx dog com>
_base=METIS
pkgname=${_base,,}
pkgver=5.2.1
pkgrel=2
arch=(x86_64)
pkgdesc="Serial Graph Partitioning and Fill-reducing Matrix Ordering"
url="https://github.com/KarypisLab/${_base}"
license=(Apache)
depends=(glibc gklib)
makedepends=(cmake)
options=(docs)
source=(${_base}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz)
sha512sums=('69127b7a777f9ba14cf399a7122000af9d6094a5f44be600a28384cfc0495c024fb0c6eab37c4473a5763ec1077cd9f30d9bcbb3c952462f6c9ead31c6b9e790')
prepare() {
cd ${_base}-${pkgver}
# Increase CMake version
sed -i 's/2.8/3.10/' CMakeLists.txt
echo "target_link_libraries(metis PUBLIC \"-lGKlib\")" >>"libmetis/CMakeLists.txt"
}
build() {
cd ${_base}-${pkgver}
make config \
shared=1 \
cc=gcc \
prefix=/usr \
gklib_path=/usr
}
package() {
cd ${_base}-${pkgver}
make install DESTDIR="${pkgdir}"
install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
|