aboutsummaryrefslogtreecommitdiffstats
path: root/testing/boost-build/APKBUILD
blob: 8c4cd06612b58416a2e6382b87297bd24eb3109e (plain)
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
# Contributor: Pedro Filipe <xpecex@outlook.com>
# Contributor: Valery Kartel <valery.kartel@gmail.com>
# Maintainer: Valery Kartel <valery.kartel@gmail.com>
pkgname=boost-build
pkgver=1.68.0
pkgrel=1
pkgdesc="Boost.Build makes it easy to build C++ projects, everywhere"
url="https://boost.org/build"
arch="all"
options="!check"
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::https://boost.org/LICENSE_1_0.txt"
builddir="$srcdir/${pkgname#*-}-${pkgname%%-*}-$pkgver"

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

package() {
	cd "$builddir"

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

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

sha512sums="ede4ea6bba966bfdc590ea21b8787f090c690db851fd6eb19644f089de8828b6cec504a7f4be203d57017de2a0288f0e12772e50d9017287221520dca1676a79  boost-build-1.68.0.tar.gz
d6078467835dba8932314c1c1e945569a64b065474d7aced27c9a7acc391d52e9f234138ed9f1aa9cd576f25f12f557e0b733c14891d42c16ecdc4a7bd4d60b8  boost-build-1.68.0-LICENSE.txt"