Skip to content

Commit

Permalink
New package: linbox-1.6.3
Browse files Browse the repository at this point in the history
  • Loading branch information
tornaria committed Sep 17, 2021
1 parent 0fbbbd2 commit 70ab5fd
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 0 deletions.
1 change: 1 addition & 0 deletions common/shlibs
Original file line number Diff line number Diff line change
Expand Up @@ -3992,6 +3992,7 @@ libsimavr.so.1 simavr-1.6_2
libsimavrparts.so.1 simavr-1.6_2
libsword-1.8.1.so libsword-1.8.1_6
libgivaro.so.9 givaro-4.1.1_1
liblinbox.so.0 linbox-1.6.3_1
libpari-gmp.so.7 pari-2.13.0_1
libpari-gmp-tls.so.7 pari-2.13.2_1
libtree-sitter.so.0 tree-sitter-0.19.0_1
Expand Down
1 change: 1 addition & 0 deletions srcpkgs/linbox-devel
45 changes: 45 additions & 0 deletions srcpkgs/linbox/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# Template file for 'linbox'
pkgname=linbox
version=1.6.3
revision=1
build_style=gnu-configure
hostmakedepends="pkg-config"
makedepends="fflas_ffpack"
short_desc="C++ library for exact, high-performance linear algebra"
maintainer="Gonzalo Tornaría <[email protected]>"
license="LGPL-2.1-or-later"
homepage="https://linalg.org"
distfiles="https://github.com/linbox-team/linbox/releases/download/v${version}/linbox-${version}.tar.gz"
checksum=a58a188307b07c57964e844bceb99321d3043a8a4a1fccc082a54928bb9a0057
nocross=yes

build_options="native_build"

if [ -z "$build_option_native_build" ]; then
configure_args="--enable-sse --enable-sse2
--disable-sse3 --disable-ssse3 --disable-sse41 --disable-sse42
--disable-avx --disable-avx2 --disable-fma --disable-fma4"
fi

pre_check() {
if [ "$XBPS_TARGET_MACHINE" = "i686" ]; then
# skip test that doesn't compile on i686
# see https://github.com/linbox-team/linbox/issues/273
touch tests/test-qlup.o
echo 'exit 77' > tests/test-qlup
chmod +x tests/test-qlup
fi
}

linbox-devel_package() {
depends="${sourcepkg}>=${version}_${revision} ${makedepends}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
vmove usr/lib/pkgconfig
vmove usr/bin
vmove usr/share
}
}

0 comments on commit 70ab5fd

Please sign in to comment.