summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4a2f1062bec716c63ef6c65dc447f541c6adb8fc (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-quickbook
pkgver=1.83.0
pkgrel=1
_srcname=boost_${pkgver//./_}
pkgdesc="Boost.org quickbook module"
arch=(x86_64)
url="https://github.com/boostorg/quickbook"
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 \
    tools/quickbook
}

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