diff options
author | tcely <tcely@users.noreply.github.com> | 2019-03-28 12:59:28 -0400 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2019-04-02 10:31:57 +0000 |
commit | ae7f93b522029c7bf4e0ef8de9183a0e7896a204 (patch) | |
tree | e434b06155703b878e4053c22670f7d98bac4d00 /community/boost-build | |
parent | 66307c89bbe21c7d1a3945f347329b22bab114bd (diff) | |
download | aports-ae7f93b522029c7bf4e0ef8de9183a0e7896a204.tar.bz2 aports-ae7f93b522029c7bf4e0ef8de9183a0e7896a204.tar.xz |
community/boost-build: move from testing
Diffstat (limited to 'community/boost-build')
-rw-r--r-- | community/boost-build/APKBUILD | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/community/boost-build/APKBUILD b/community/boost-build/APKBUILD new file mode 100644 index 0000000000..ba541a2ea7 --- /dev/null +++ b/community/boost-build/APKBUILD @@ -0,0 +1,46 @@ +# 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.69.0 +pkgrel=0 +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" |