extra/boost to 1.81.0-5

This commit is contained in:
Kevin Mihelich 2023-05-03 23:23:20 +00:00
parent 3142eb5fb4
commit c913c430b2

View file

@ -14,7 +14,7 @@
pkgname=('boost' 'boost-libs')
pkgver=1.81.0
pkgrel=3
pkgrel=5
_srcname=boost_${pkgver//./_}
pkgdesc="Free peer-reviewed portable C++ source libraries"
arch=('x86_64')
@ -79,6 +79,9 @@ build() {
}
package_boost() {
local python_version=$(
python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')
pkgdesc+=' (development headers)'
depends=("boost-libs=$pkgver")
optdepends=('python: for python bindings')
@ -91,13 +94,16 @@ package_boost() {
# https://github.com/boostorg/python/issues/203#issuecomment-391477685
for _lib in python numpy; do
ln -srL "$pkgdir"/usr/lib/libboost_${_lib}3{10,}.so
ln -srL "$pkgdir"/usr/lib/libboost_${_lib}{${python_version/.},${python_version%.*}}.so
done
install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname" $_srcname/LICENSE_1_0.txt
}
package_boost-libs() {
local python_version=$(
python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')
pkgdesc+=' (runtime libraries)'
depends=('bzip2' 'zlib' 'icu' 'zstd')
optdepends=('openmpi: for mpi support')
@ -108,10 +114,10 @@ package_boost-libs() {
libboost_json.so libboost_locale.so libboost_log.so libboost_log_setup.so
libboost_math_c99.so libboost_math_c99f.so libboost_math_c99l.so
libboost_math_tr1.so libboost_math_tr1f.so libboost_math_tr1l.so
libboost_mpi{,_python310}.so libboost_nowide.so libboost_numpy310.so
libboost_prg_exec_monitor.so libboost_program_options.so
libboost_python310.so libboost_random.so
libboost_regex.so libboost_serialization.so
libboost_mpi{,_python${python_version/.}}.so libboost_nowide.so
libboost_numpy${python_version/.}.so libboost_prg_exec_monitor.so
libboost_program_options.so libboost_python${python_version/.}.so
libboost_random.so libboost_regex.so libboost_serialization.so
libboost_stacktrace_addr2line.so libboost_stacktrace_basic.so
libboost_stacktrace_noop.so libboost_system.so libboost_thread.so
libboost_timer.so libboost_type_erasure.so libboost_unit_test_framework.so