extra/boost to 1.79.0-1

This commit is contained in:
Kevin Mihelich 2022-06-14 23:45:09 +00:00
parent 413c2cf9e2
commit 4df079cb01

View file

@ -10,12 +10,11 @@
# Contributor: Luca Roccia <little_rock@users.sourceforge.net> # Contributor: Luca Roccia <little_rock@users.sourceforge.net>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org> # ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - build armv6h with -march=armv6k
# - specify arm architecture to b2 for aarch64 # - specify arm architecture to b2 for aarch64
pkgname=('boost' 'boost-libs') pkgname=('boost' 'boost-libs')
pkgver=1.78.0 pkgver=1.79.0
pkgrel=3 pkgrel=1
_srcname=boost_${pkgver//./_} _srcname=boost_${pkgver//./_}
pkgdesc="Free peer-reviewed portable C++ source libraries" pkgdesc="Free peer-reviewed portable C++ source libraries"
arch=('x86_64') arch=('x86_64')
@ -23,20 +22,15 @@ url="https://www.boost.org/"
license=('custom') license=('custom')
makedepends=('icu' 'python' 'python-numpy' 'bzip2' 'zlib' 'openmpi' 'zstd') makedepends=('icu' 'python' 'python-numpy' 'bzip2' 'zlib' 'openmpi' 'zstd')
source=(https://boostorg.jfrog.io/artifactory/main/release/$pkgver/source/$_srcname.tar.gz source=(https://boostorg.jfrog.io/artifactory/main/release/$pkgver/source/$_srcname.tar.gz
$pkgname-b2-fix-lib-install.patch::https://github.com/bfgroup/b2/commit/78fd284a42ca.patch
$pkgname-locale-empty-vector.patch::https://github.com/boostorg/locale/commit/1ff0ead837b3.patch $pkgname-locale-empty-vector.patch::https://github.com/boostorg/locale/commit/1ff0ead837b3.patch
$pkgname-ublas-c++20-iterator.patch::https://github.com/boostorg/ublas/commit/a31e5cffa85f.patch) $pkgname-ublas-c++20-iterator.patch::https://github.com/boostorg/ublas/commit/a31e5cffa85f.patch)
sha256sums=('94ced8b72956591c4775ae2207a9763d3600b30d9d7446562c552f0a14a63be7' sha256sums=('273f1be93238a068aba4f9735a4a2b003019af067b9c183ed227780b8f36062c'
'd233b16920ad7da8bb6e02bf5fb4e429592057b4f4db28d4babf3850e837a8db'
'6c05bd362bc18908a7e23eec3b4a714f82c15c722bda4c340778e2f5b1a9bf25' '6c05bd362bc18908a7e23eec3b4a714f82c15c722bda4c340778e2f5b1a9bf25'
'aa38addb40d5f44b4a8472029b475e7e6aef1c460509eb7d8edf03491dc1b5ee') 'aa38addb40d5f44b4a8472029b475e7e6aef1c460509eb7d8edf03491dc1b5ee')
prepare() { prepare() {
cd $_srcname cd $_srcname
# https://github.com/bfgroup/b2/issues/104
patch -Np1 -d tools/build <../$pkgname-b2-fix-lib-install.patch
# https://github.com/boostorg/locale/issues/52 # https://github.com/boostorg/locale/issues/52
patch -Np1 -d libs/locale <../$pkgname-locale-empty-vector.patch patch -Np1 -d libs/locale <../$pkgname-locale-empty-vector.patch
@ -45,7 +39,6 @@ prepare() {
} }
build() { build() {
CFLAGS=`echo $CFLAGS | sed -e 's/armv6/armv6k/'` && CXXFLAGS="$CFLAGS"
local JOBS="$(sed 's/.*\(-j *[0-9]\+\).*/\1/' <<<$MAKEFLAGS)" local JOBS="$(sed 's/.*\(-j *[0-9]\+\).*/\1/' <<<$MAKEFLAGS)"
pushd $_srcname/tools/build pushd $_srcname/tools/build