mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-29 17:02:56 +02:00
New package: justbuild-1.1.2.
This commit is contained in:
parent
e6cd0130ec
commit
8aae399bf6
1 changed files with 68 additions and 0 deletions
68
srcpkgs/justbuild/template
Normal file
68
srcpkgs/justbuild/template
Normal file
|
@ -0,0 +1,68 @@
|
|||
# Template file for 'justbuild'
|
||||
pkgname=justbuild
|
||||
version=1.1.2
|
||||
revision=1
|
||||
create_wrksrc=yes
|
||||
hostmakedepends="jo pandoc pkg-config python3 tar unzip wget"
|
||||
makedepends="abseil-cpp-devel c-ares-devel catch2 fmt-devel grpc-devel json-c++
|
||||
libarchive-devel libcurl-devel libgit2-devel openssl-devel re2-devel"
|
||||
depends="python3"
|
||||
short_desc="Generic build system supporting multi-repository builds"
|
||||
maintainer="Leah Neukirchen <leah@vuxu.org>"
|
||||
license="Apache-2.0"
|
||||
homepage="https://github.com/just-buildsystem/justbuild/"
|
||||
changelog="https://github.com/just-buildsystem/justbuild/blob/master/CHANGELOG.md"
|
||||
distfiles="https://github.com/just-buildsystem/justbuild/archive/v${version}.tar.gz"
|
||||
checksum=50341bdf3742ad6dec20454b338770e8428b531d04c675ca976d1e410c5b33ba
|
||||
conflicts="just>=0"
|
||||
nocross="not supported by bootstrapping"
|
||||
|
||||
do_build() {
|
||||
mkdir -p just-work
|
||||
export JUST_BUILD_CONF=$(jo \
|
||||
AR=/usr/bin/ar \
|
||||
COMPILER_FAMILY=gnu \
|
||||
CC=$CC \
|
||||
CXX=$CXX \
|
||||
CFLAGS=$(jo -a -- $CFLAGS) \
|
||||
CXXFLAGS=$(jo -a -- $CXXFLAGS) \
|
||||
LDFLAGS=$(jo -a -- $LDFLAGS) \
|
||||
SOURCE_DATE_EPOCH=$SOURCE_DATE_EPOCH \
|
||||
VERSION_EXTRA_SUFFIX=-void
|
||||
)
|
||||
export NON_LOCAL_DEPS=$(jo -a \
|
||||
bazel_remote_apis \
|
||||
cli11 \
|
||||
com_github_microsoft_gsl \
|
||||
google_apis \
|
||||
protobuf
|
||||
)
|
||||
|
||||
PACKAGE=YES LOCALBASE=/usr python3 \
|
||||
justbuild-${version}/bin/bootstrap.py \
|
||||
justbuild-${version}/ $PWD/just-work
|
||||
|
||||
./just-work/src/out-boot/bin/just install \
|
||||
-C $PWD/just-work/repo-conf.json \
|
||||
-D "$JUST_BUILD_CONF" \
|
||||
-o $PWD/just-work/out \
|
||||
--local-build-root $PWD/just-work/.just \
|
||||
'' just-mr
|
||||
|
||||
for m in justbuild-${version}/share/man/*.md; do
|
||||
pandoc --standalone --to man -o ${m%.md}.man $m
|
||||
done
|
||||
}
|
||||
|
||||
do_install() {
|
||||
vbin just-work/out/bin/just
|
||||
vbin just-work/out/src/other_tools/just_mr/just-mr
|
||||
vbin just-work/src/bin/just-import-git.py just-import-git
|
||||
|
||||
eval vcompletion justbuild-${version}/share/just_complete.bash bash
|
||||
|
||||
for m in justbuild-${version}/share/man/*.man; do
|
||||
echo $m
|
||||
vman $m ${m%.man}
|
||||
done
|
||||
}
|
Loading…
Add table
Reference in a new issue