summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9ec7640a822c14e59ef6b3840a3400d25b657aa4 (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
# Maintainer: Letu Ren <fantasquex@gmail.com>

pkgname=boost-doxygen_xml2qbk
pkgver=1.83.0
pkgrel=1
_srcname=boost_${pkgver//./_}
pkgdesc="Boost.org geometry docutils doxygen_xml2qbk"
arch=(x86_64)
url="https://github.com/boostorg/geometry"
license=('custom')
depends=('gcc-libs')
makedepends=('icu')
source=("https://boostorg.jfrog.io/artifactory/main/release/$pkgver/source/$_srcname.tar.bz2")
sha256sums=('6478edfe2f3305127cffe8caf73ea0176c53769f4bf1585be237eb30798c3b8e')

build() {
  local JOBS="$(sed 's/.*\(-j *[0-9]\+\).*/\1/' <<<$MAKEFLAGS)"

  cd $_srcname
  ./bootstrap.sh --with-toolset=gcc --with-icu
  ./b2 \
    variant=release \
    debug-symbols=off \
    threading=multi \
    runtime-link=shared \
    link=shared,static \
    toolset=gcc \
    cflags="$CPPFLAGS $CFLAGS -fPIC -O3 -ffat-lto-objects" \
    cxxflags="$CPPFLAGS $CXXFLAGS -fPIC -O3 -ffat-lto-objects" \
    linkflags="$LDFLAGS" \
    $JOBS \
    libs/geometry/doc/src/docutils/tools/doxygen_xml2qbk
}

package() {
  cd $_srcname
  install -Dm755 -t $pkgdir/usr/bin ./dist/bin/doxygen_xml2qbk
  install -Dm644 -t $pkgdir/usr/share/licenses/$pkgname LICENSE_1_0.txt
}