PKGBUILD 843 Bytes
Newer Older
1
pkgname=boost-build
gnastyle's avatar
gnastyle committed
2 3
pkgver=2016.03
pkgrel=1
4
pkgdesc="Boost build system."
gnastyle's avatar
gnastyle committed
5
arch=('x86_64')
6
url="http://www.boost.org/doc/tools/build/"
Francesco Marinucci's avatar
Francesco Marinucci committed
7
license=('custom')
gnastyle's avatar
gnastyle committed
8 9
depends=('boost-libs' 'gcc' 'python3')
source=("https://github.com/boostorg/build/archive/${pkgver}.tar.gz"
10
	"http://www.boost.org/LICENSE_1_0.txt")
gnastyle's avatar
gnastyle committed
11 12
sha1sums=('0e6936337c25fc87d2aff8ea6c63019e9c1e319a'
          '3cba29011be2b9d59f6204d6fa0a386b1b2dbd90')
Francesco Marinucci's avatar
Francesco Marinucci committed
13

gnastyle's avatar
gnastyle committed
14 15
prepare() {
  cd ${srcdir}/build-${pkgver}
16

gnastyle's avatar
gnastyle committed
17 18 19 20 21
  ./bootstrap.sh
}          
          
package(){
  cd ${srcdir}/build-${pkgver}
22

gnastyle's avatar
gnastyle committed
23 24 25 26 27
  ./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/
28 29 30 31

  # License.
  install -Dm 644 $srcdir/LICENSE_1_0.txt $pkgdir/usr/share/licenses/$pkgname/LICENSE
}