[arch-commits] Commit in eigen/trunk (PKGBUILD)
Antonio Rojas
arojas at archlinux.org
Fri Apr 17 18:50:31 UTC 2020
Date: Friday, April 17, 2020 @ 18:50:30
Author: arojas
Revision: 380463
Backport fix for c++17 issues (FS#66285)
Modified:
eigen/trunk/PKGBUILD
----------+
PKGBUILD | 30 +++++++++++++++++-------------
1 file changed, 17 insertions(+), 13 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-04-17 18:47:10 UTC (rev 380462)
+++ PKGBUILD 2020-04-17 18:50:30 UTC (rev 380463)
@@ -4,7 +4,7 @@
pkgname=eigen
pkgver=3.3.7
-pkgrel=4
+pkgrel=5
pkgdesc="Lightweight C++ template library for vector and matrix math, a.k.a. linear algebra."
arch=('any')
url='https://eigen.tuxfamily.org'
@@ -12,26 +12,30 @@
makedepends=('cmake' 'pkg-config' 'freeglut' 'gcc-fortran' 'fftw' 'suitesparse' 'boost')
replaces=('eigen3')
provides=('eigen3')
-source=("${pkgname}-${pkgver}.tar.bz2::https://bitbucket.org/eigen/eigen/get/${pkgver}.tar.bz2")
-sha1sums=('a06faa6f358d5d1ca0da7cddb95da39e436dc9e8')
+source=("${pkgname}-${pkgver}.tar.bz2::https://bitbucket.org/eigen/eigen/get/${pkgver}.tar.bz2"
+ eigen-c++17.patch::"https://gitlab.com/libeigen/eigen/-/commit/2aa9eb3c.patch")
+sha256sums=('9f13cf90dedbe3e52a19f43000d71fdf72e986beb9a5436dddcd61ff9d77a3ce'
+ '241b9363362314f36fa6bfa7182e8d3c38fc2e92855ab1f44c352d8a7c7ad599')
prepare() {
mkdir -p build
+
+ cd eigen-eigen-*
+ patch -p1 -i ../eigen-c++17.patch # https://gitlab.com/libeigen/eigen/-/issues/1676
}
build() {
- cd build
- cmake ../eigen-eigen-* \
- -DCMAKE_INSTALL_PREFIX=/usr \
- -DCMAKE_INSTALL_LIBDIR=lib
+ cd build
+ cmake ../eigen-eigen-* \
+ -DCMAKE_INSTALL_PREFIX=/usr
}
package() {
- cd build
- make DESTDIR="$pkgdir" install
+ cd build
+ make DESTDIR="$pkgdir" install
- # install custom licenses
- install -Dm644 ../eigen-eigen-*/COPYING.MPL2 -t "$pkgdir/usr/share/licenses/$pkgname"
- install -Dm644 ../eigen-eigen-*/COPYING.BSD -t "$pkgdir/usr/share/licenses/$pkgname"
- install -Dm644 ../eigen-eigen-*/COPYING.MINPACK -t "$pkgdir/usr/share/licenses/$pkgname"
+ # install custom licenses
+ install -Dm644 ../eigen-eigen-*/COPYING.MPL2 -t "$pkgdir/usr/share/licenses/$pkgname"
+ install -Dm644 ../eigen-eigen-*/COPYING.BSD -t "$pkgdir/usr/share/licenses/$pkgname"
+ install -Dm644 ../eigen-eigen-*/COPYING.MINPACK -t "$pkgdir/usr/share/licenses/$pkgname"
}
More information about the arch-commits
mailing list