aboutsummaryrefslogtreecommitdiffstats
path: root/testing/boost-build/APKBUILD
blob: db0f60d46e482c2afba1881e5324441b5bdbba8f (plain) (blame)
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
# Contributor: Valery Kartel <valery.kartel@gmail.com>
# Maintainer: Valery Kartel <valery.kartel@gmail.com>
pkgname=boost-build
pkgver=1.62.0
pkgrel=1
pkgdesc="Boost.Build makes it easy to build C++ projects, everywhere"
url="http://boost.org/build"
arch="all"
license="custom:boost"
depends="boost-dev"
makedepends=""
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/boostorg/${pkgname#*-}/archive/${pkgname%%-*}-$pkgver.tar.gz
	$pkgname-$pkgver-LICENSE.txt::http://boost.org/LICENSE_1_0.txt"
builddir="$srcdir/${pkgname#*-}-${pkgname%%-*}-$pkgver"

build() {
	cd "$builddir"
	./bootstrap.sh || return 1
}

package() {
	cd "$builddir"

	./b2 install --prefix="$pkgdir"/usr || return 1
	install -Dm644 "$srcdir"/$pkgname-$pkgver-LICENSE.txt \
		"$pkgdir"/usr/share/doc/$pkgname/LICENSE || return 1

	mv "$pkgdir"/usr/share/$pkgname/example "$pkgdir"/usr/share/doc/$pkgname
	rm "$pkgdir"/usr/bin/bjam
}

md5sums="12cc948c2bfc29d306b07f059b143f70  boost-build-1.62.0.tar.gz
e4224ccaecb14d942c71d31bef20d78c  boost-build-1.62.0-LICENSE.txt"
sha256sums="ed5fd20eadb6bb8c26a9e1c50cd3e7a701ce05935a606075ac3c10223c168f68  boost-build-1.62.0.tar.gz
c9bff75738922193e67fa726fa225535870d2aa1059f91452c411736284ad566  boost-build-1.62.0-LICENSE.txt"
sha512sums="4940b058c60223408fca8f022244fe7eb333ff0a8d38e7e9668ccccedae9dc231e7f1a9547cce2975b1176a77289a6ea479e459d64c6650615d8db87a18af17c  boost-build-1.62.0.tar.gz
d6078467835dba8932314c1c1e945569a64b065474d7aced27c9a7acc391d52e9f234138ed9f1aa9cd576f25f12f557e0b733c14891d42c16ecdc4a7bd4d60b8  boost-build-1.62.0-LICENSE.txt"