lib32/lib32-boost-libs/PKGBUILD

87 lines
2.7 KiB
Bash
Raw Normal View History

2013-10-10 17:57:38 +08:00
# Maintainer : Jan Was < janek.jan@gmail.com >
# Contributor : Dan Vratil <dan@progdan.cz>
# Contributor : andy123 < ajs AT online DOT de >
2016-03-15 07:55:30 +08:00
_pkgbasename=boost-libs
pkgname=lib32-$_pkgbasename
pkgver=1.60.0
2013-10-10 17:57:38 +08:00
_boostver=${pkgver//./_}
2015-03-09 05:14:35 +08:00
pkgrel=1
2013-02-05 16:52:30 +08:00
url="http://www.boost.org"
2013-10-10 17:57:38 +08:00
arch=('x86_64')
pkgdesc="Free peer-reviewed portable C++ source libraries - Runtime (32 bit)"
2013-02-05 16:52:30 +08:00
license=('custom')
groups=('lib32')
2016-03-15 07:55:30 +08:00
depends=('lib32-bzip2' 'lib32-zlib' 'lib32-icu' 'lib32-gcc-libs' "$_pkgbasename=$pkgver")
makedepends=('lib32-icu>=56.1' 'lib32-bzip2' 'lib32-zlib' 'gcc-multilib' 'python3' 'python2')
2013-10-10 17:57:38 +08:00
source=(http://downloads.sourceforge.net/sourceforge/boost/boost_${_boostver}.tar.gz
# upstream patches
2016-03-15 07:55:30 +08:00
cuda_float128.patch::"https://github.com/boostorg/config/commit/a332112317450457c715675686386ec81214b863.patch")
sha1sums=('ac74db1324e6507a309c5b139aea41af624c8110'
'bdc6486e0d90368bbfd872fed8ee3d3c73483933')
2013-10-10 17:57:38 +08:00
prepare() {
2016-03-15 07:55:30 +08:00
cd "${srcdir}/boost_${_boostver}"
# fix https://svn.boost.org/trac/boost/ticket/11852
patch -p2 -i ../cuda_float128.patch
2013-10-10 17:57:38 +08:00
}
build() {
export CC="gcc"
export CFLAGS="-m32"
export CXX="g++"
export CXXFLAGS="-m32"
export LDFLAGS="-m32"
export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
export _stagedir="${srcdir}/stagedir"
local JOBS="$(sed -e 's/.*\(-j *[0-9]\+\).*/\1/' <<< ${MAKEFLAGS})"
cd "${srcdir}/boost_${_boostver}"
2016-03-15 07:55:30 +08:00
2015-03-09 05:14:35 +08:00
./bootstrap.sh --with-toolset=gcc --with-icu --with-python=
2013-10-10 17:57:38 +08:00
2015-03-09 05:14:35 +08:00
_bindir="bin.linuxx86_64"
2013-10-10 17:57:38 +08:00
install -d -m 755 "${_stagedir}"/bin
2016-03-15 07:55:30 +08:00
install "${srcdir}"/boost_${_boostver}/tools/build/src/engine/${_bindir}/b2 "${_stagedir}"/bin/b2
2013-10-10 17:57:38 +08:00
2016-03-15 07:55:30 +08:00
# boostbook is needed by quickbook
2013-10-10 17:57:38 +08:00
install -d -m 755 "${_stagedir}"/share/boostbook
cp -a tools/boostbook/{xsl,dtd} "${_stagedir}"/share/boostbook/
# default "minimal" install: "release link=shared,static
# runtime-link=shared threading=single,multi"
# --layout=tagged will add the "-mt" suffix for multithreaded libraries
# and installs includes in /usr/include/boost.
# --layout=system no longer adds the -mt suffix for multi-threaded libs.
# install to ${_stagedir} in preparation for split packaging
2015-03-09 05:14:35 +08:00
"${_stagedir}"/bin/b2 \
2013-10-10 17:57:38 +08:00
variant=release \
debug-symbols=off \
threading=multi \
runtime-link=shared \
link=shared \
toolset=gcc \
address-model=32 \
2015-03-09 05:14:35 +08:00
cflags="${CPPFLAGS} ${CFLAGS} -O3" linkflags="${LDFLAGS}" \
2013-10-10 17:57:38 +08:00
--without-python \
--without-mpi \
--layout=system \
--prefix="${_stagedir}" \
${JOBS} \
install
2013-02-05 16:52:30 +08:00
}
2013-10-10 17:57:38 +08:00
package() {
_stagedir="${srcdir}/stagedir"
install -d -m 755 "${pkgdir}/usr/lib32"
cp -a "${_stagedir}"/lib/*.so{,.*} "${pkgdir}/usr/lib32/"
2013-02-05 16:52:30 +08:00
2013-10-10 17:57:38 +08:00
install -D -m 644 "${srcdir}/boost_${_boostver}/LICENSE_1_0.txt" \
"${pkgdir}"/usr/share/licenses/lib32-boost-libs/LICENSE_1_0.txt
2013-02-05 16:52:30 +08:00
}