blob: 00f4d3b3a588154f599b4ac7b67cabd3ff17ec5b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# Maintainer: Tzu-Yu Lee <leejuyuu@gmail.com>
# Co-maintainer: RayeS <sidorovich.pasha at gmail dot com>
# Contributor: chn <g897331845@gmail.com>
# Contributor: xantares
pkgname=boost-stacktrace-backtrace
pkgver=1.90.0
_boostver=${pkgver//./_}
pkgrel=1
pkgdesc='Boost.stacktrace backtrace variant'
url='https://www.boost.org/'
arch=('x86_64')
license=('custom')
depends=('boost' 'libbacktrace-git')
makedepends=('gcc')
options=('staticlibs')
provides=(libboost_stacktrace_backtrace.so)
source=("https://archives.boost.io/release/$pkgver/source/boost_$_boostver.tar.gz")
sha256sums=('5e93d582aff26868d581a52ae78c7d8edf3f3064742c6e77901a1f18a437eea9')
build() {
cd boost_$_boostver
./bootstrap.sh --with-toolset=gcc
./b2 \
variant=release \
debug-symbols=off \
threading=multi \
runtime-link=shared \
link=shared,static \
toolset=gcc \
cxxstd=23 \
cflags="${CPPFLAGS} ${CFLAGS} -fPIC -O3 -ffat-lto-objects" \
cxxflags="${CPPFLAGS} ${CXXFLAGS} -fPIC -O3 -ffat-lto-objects" \
linkflags="${LDFLAGS}" \
--layout=system \
--with-stacktrace
}
package() {
cd boost_$_boostver
install -d "${pkgdir}"/usr/lib
install -d "${pkgdir}"/usr/lib/cmake
cp -P stage/lib/libboost_stacktrace_backtrace.* "${pkgdir}"/usr/lib
cp -r stage/lib/cmake/boost_stacktrace_backtrace-"${pkgver}" "${pkgdir}"/usr/lib/cmake/
}
|