extra/boost to 1.46.1-3

This commit is contained in:
Kevin Mihelich 2011-06-09 17:26:22 -04:00
parent 34ee0f42cc
commit a73cfa2cad

View file

@ -1,4 +1,4 @@
# $Id: PKGBUILD 126149 2011-06-01 20:01:54Z ibiru $
# $Id: PKGBUILD 126799 2011-06-07 11:40:27Z ibiru $
# Maintainer: kevin <kevin@archlinux.org>
# Contributor: Giovanni Scafora <giovanni@archlinux.org>
# Contributor: Kritoke <kritoke@gamebox.net>
@ -14,7 +14,7 @@ pkgbase=boost
pkgname=('boost-libs' 'boost')
pkgver=1.46.1
_boostver=${pkgver//./_}
pkgrel=2
pkgrel=3
arch=('i686' 'x86_64')
url="http://www.boost.org/"
makedepends=('icu' 'python' 'python2' 'bzip2' 'zlib')
@ -40,15 +40,24 @@ build() {
./build.sh cc
_bindir="bin.linuxarm"
[ "${CARCH}" = "x86_64" ] && _bindir="bin.linuxx86_64"
install -d "${_stagedir}"/usr/bin
install ${_bindir}/bjam "${_stagedir}"/usr/bin/bjam
# build bcp
cd "${srcdir}/${pkgbase}_${_boostver}/tools/bcp"
../build/v2/engine/src/${_bindir}/bjam --toolset=gcc
install -m755 "${srcdir}/${pkgbase}_${_boostver}/dist/bin/bcp" \
${_stagedir}/usr/bin/bcp
# build tools
cd "${srcdir}/${pkgbase}_${_boostver}/tools/"
"${_stagedir}"/usr/bin/bjam --toolset=gcc
# copy the tools
cd "${srcdir}/${pkgbase}_${_boostver}/dist/bin"
for i in *;do
install -m755 "${i}" "${_stagedir}/usr/bin/${i}"
done
#boostbook needed by quickbook
cd "${srcdir}/${pkgbase}_${_boostver}/dist/"
cp -r share "${_stagedir}"
# build libs
cd "${srcdir}/${pkgbase}_${_boostver}"
@ -64,7 +73,7 @@ build() {
# --layout=system no longer adds the -mt suffix for multi-threaded libs.
# install to ${_stagedir} in preparation for split packaging
./tools/build/v2/engine/src/${_bindir}/bjam \
"${_stagedir}"/usr/bin/bjam \
release debug-symbols=off threading=multi \
runtime-link=shared link=shared,static \
cflags=-fno-strict-aliasing \
@ -87,7 +96,7 @@ package_boost() {
optdepends=('python: for python bindings'
'python2: for python2 bindings')
install -d "${pkgdir}"/usr/{include,lib}
install -d "${pkgdir}"/usr/{include,lib,share}
# headers/source files
cp -r "${_stagedir}"/include/ "${pkgdir}"/usr/
@ -97,6 +106,9 @@ package_boost() {
# utilities (bjam, bcp, pyste)
cp -r "${_stagedir}"/usr/* "${pkgdir}"/usr/
#boostbook
cp -r "${_stagedir}"/share/* "${pkgdir}"/usr/share
# license
install -D -m644 "${srcdir}/${pkgbase}_${_boostver}/LICENSE_1_0.txt" \
"${pkgdir}"/usr/share/licenses/boost/LICENSE_1_0.txt