PaganOS Luna 0.6.0
PL EN DE
🔒 Repository is read-only – file editing is disabled.

recipes/utils/boost/PAGBUILD.yaml main

55 lines Raw ← Back
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
pkgname: boost
pkgver: '1.91.0'
pkgrel: '2'
pkgdesc: 'Boost provides a set of free peer-reviewed portable C++ source libraries.'
url: 'https://boost.sourceforge.net/'
arch: x86_64
depends:
- openssl
- zstd
makedepends:
- icu
- python

source:
- 'https://archives.boost.io/release/1.87.0/source/${pkgname}_1_87_0.tar.gz'
- 'https://archives.boost.io/release/${pkgver}/source/${pkgname}_1_91_0.tar.gz'

sha256sums:
- SKIP
- SKIP

build: |
  sed -i '/#include.*phoenix.*tuple.hpp.*/d' \
  ${pkgname}_1_91_0/boost/phoenix/stl.hpp

  sed -i '/#include.*phoenix.*tuple.hpp.*/d' \
  ${pkgname}_1_87_0/boost/phoenix/stl.hpp
  cd ${pkgname}_1_87_0
  ./bootstrap.sh --prefix=${PKGDIR}/usr/local --with-toolset=gcc --with-python=python3

  ./b2 stage -j8 variant=release threading=multi \
  	link=shared,static debug-symbols=off -j ${JOBS-1}

  ./b2 install threading=multi link=shared


  cd ../${pkgname}_1_91_0

  ./bootstrap.sh --prefix=${PKGDIR}/usr --with-toolset=gcc --with-python=python3

  ./b2 stage -j8 variant=release threading=multi \
  	link=shared,static debug-symbols=off -j ${JOBS-1}

  ./b2 install threading=multi link=shared
  ln -svf detail/sha1.hpp ${PKGDIR}/usr/include/boost/uuid/sha1.hpp

package: |
  cd .
  for lib in date_time filesystem atomic locale chrono thread program_options \
  regex system
  do
    cp -v ${PKGDIR}/usr/local/lib/libboost_$lib.so.1.87.0 \
    ${PKGDIR}/usr/lib/
  done
  rm -r ${PKGDIR}/usr/local