extra/boost to 1.80.0-1

This commit is contained in:
Kevin Mihelich 2022-09-19 01:29:09 +00:00
parent 293e02a180
commit a2fb177795

View file

@ -13,7 +13,7 @@
# - specify arm architecture to b2 for aarch64
pkgname=('boost' 'boost-libs')
pkgver=1.79.0
pkgver=1.80.0
pkgrel=1
_srcname=boost_${pkgver//./_}
pkgdesc="Free peer-reviewed portable C++ source libraries"
@ -21,19 +21,14 @@ arch=('x86_64')
url="https://www.boost.org/"
license=('custom')
makedepends=('icu' 'python' 'python-numpy' 'bzip2' 'zlib' 'openmpi' 'zstd')
source=(https://boostorg.jfrog.io/artifactory/main/release/$pkgver/source/$_srcname.tar.gz
$pkgname-locale-empty-vector.patch::https://github.com/boostorg/locale/commit/1ff0ead837b3.patch
source=(https://boostorg.jfrog.io/artifactory/main/release/$pkgver/source/$_srcname.tar.bz2
$pkgname-ublas-c++20-iterator.patch::https://github.com/boostorg/ublas/commit/a31e5cffa85f.patch)
sha256sums=('273f1be93238a068aba4f9735a4a2b003019af067b9c183ed227780b8f36062c'
'6c05bd362bc18908a7e23eec3b4a714f82c15c722bda4c340778e2f5b1a9bf25'
sha256sums=('1e19565d82e43bc59209a168f5ac899d3ba471d55c7610c677d4ccf2c9c500c0'
'aa38addb40d5f44b4a8472029b475e7e6aef1c460509eb7d8edf03491dc1b5ee')
prepare() {
cd $_srcname
# https://github.com/boostorg/locale/issues/52
patch -Np1 -d libs/locale <../$pkgname-locale-empty-vector.patch
# https://github.com/boostorg/ublas/pull/97
patch -Np2 -i ../$pkgname-ublas-c++20-iterator.patch
}
@ -83,7 +78,7 @@ package_boost() {
options=('staticlibs')
install -d "$pkgdir"/usr/lib
cp -a fakeinstall/lib/*.a "$pkgdir"/usr/lib/
cp -a fakeinstall/lib/*.{a,so} "$pkgdir"/usr/lib/
cp -a fakeinstall/lib/cmake "$pkgdir"/usr/lib/
cp -a fakeinstall/{bin,include,share} "$pkgdir"/usr/
@ -111,7 +106,7 @@ package_boost-libs() {
libboost_wave.so libboost_wserialization.so)
install -dm755 "$pkgdir"/usr/lib
cp -a fakeinstall/lib/*.so* "$pkgdir"/usr/lib/
cp -a fakeinstall/lib/*.so.* "$pkgdir"/usr/lib/
# https://github.com/boostorg/mpi/issues/112
install -d "$pkgdir"/usr/lib/python3.10/site-packages/boost