aboutsummaryrefslogtreecommitdiffstats
path: root/community/boost-build/APKBUILD
blob: 9b010942ac82371b2f21eeea3d7f39904495f5b9 (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
37
38
39
40
41
42
43
44
45
46
# Contributor: Pedro Filipe <xpecex@outlook.com>
# Contributor: Valery Kartel <valery.kartel@gmail.com>
# Maintainer:
pkgname=boost-build
pkgver=1.69.0
pkgrel=1
pkgdesc="Boost.Build makes it easy to build C++ projects, everywhere"
url="https://boost.org/build"
arch="noarch"
options="!check"
license="custom:boost"
depends="boost"
makedepends=""
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/boostorg/${pkgname#*-}/archive/${pkgname%%-*}-$pkgver.tar.gz
	$pkgname-LICENSE.txt::https://boost.org/LICENSE_1_0.txt"
builddir="$srcdir/${pkgname#*-}-${pkgname%%-*}-$pkgver"

build() {
	cd "$builddir"

	# we bootstrapped with boost already
	local _b2="$(command -v b2)"
	local _bjam="$(command -v bjam)"
	cp -p "${_b2:-NOT_INSTALLED}" .
	cp -p "${_bjam:-NOT_INSTALLED}" .
}

package() {
	cd "$builddir"

	b2 install --prefix="$pkgdir"/usr

	cd "$pkgdir"

	# we don't need the copies of the boost binaries
	rm -v -rf ./usr/bin

	install -Dm644 "$srcdir/$pkgname-LICENSE.txt" \
		"./usr/share/doc/$pkgname/LICENSE"

	mv "usr/share/$pkgname/example" "usr/share/doc/$pkgname"
}

sha512sums="e8d89e75c83a08bab29f52b5100fccf1d2ddf492a532ae4cb8121a5f49819aebb8157d1a1fd7d514bd8a0fe444e5ebb1103b10c8579d5c234ab81110d9c334a8  boost-build-1.69.0.tar.gz
d6078467835dba8932314c1c1e945569a64b065474d7aced27c9a7acc391d52e9f234138ed9f1aa9cd576f25f12f557e0b733c14891d42c16ecdc4a7bd4d60b8  boost-build-LICENSE.txt"