desktop/boost-build/PKGBUILD
2016-03-14 23:46:56 +00:00

32 lines
843 B
Bash

pkgname=boost-build
pkgver=2016.03
pkgrel=2
pkgdesc="Boost build system."
arch=('x86_64')
url="http://www.boost.org/doc/tools/build/"
license=('custom')
depends=('boost-libs' 'gcc' 'python3')
source=("https://github.com/boostorg/build/archive/${pkgver}.tar.gz"
"http://www.boost.org/LICENSE_1_0.txt")
sha1sums=('0e6936337c25fc87d2aff8ea6c63019e9c1e319a'
'3cba29011be2b9d59f6204d6fa0a386b1b2dbd90')
prepare() {
cd ${srcdir}/build-${pkgver}
./bootstrap.sh
}
package(){
cd ${srcdir}/build-${pkgver}
./b2 install --prefix=${pkgdir}/usr
# Removing b2 and bjam, already installed by boost
msg2 "Removing /usr/bin/b2 and /usr/bin/bjam files, already installed by boost"
rm -rf ${pkgdir}/usr/bin/
# License.
install -Dm 644 $srcdir/LICENSE_1_0.txt $pkgdir/usr/share/licenses/$pkgname/LICENSE
}