Skip to content

Commit 34b5102

Browse files
innerleegiordano
andcommitted
Wizard recipe: bmon-v4.0.0 (#337)
* New Recipe: bmon v4.0.0 * Update B/bmon/build_tarballs.jl Co-Authored-By: Mosè Giordano <giordano@users.noreply.github.com>
1 parent 47d8f71 commit 34b5102

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed

B/bmon/build_tarballs.jl

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# Note that this script can accept some limited command-line arguments, run
2+
# `julia build_tarballs.jl --help` to see a usage message.
3+
using BinaryBuilder, Pkg
4+
5+
name = "bmon"
6+
version = v"4.0.0"
7+
8+
# Collection of sources required to complete build
9+
sources = [
10+
"https://github.com/tgraf/bmon/releases/download/v4.0/bmon-4.0.tar.gz" =>
11+
"02fdc312b8ceeb5786b28bf905f54328f414040ff42f45c83007f24b76cc9f7a",
12+
13+
]
14+
15+
# Bash recipe for building across all platforms
16+
script = raw"""
17+
cd $WORKSPACE/srcdir/bmon-*/
18+
export CFLAGS=-I$prefix/include
19+
./configure --prefix=${prefix} --build=${MACHTYPE} --host=${target}
20+
make -j${nproc}
21+
make install
22+
install_license LICENSE.*
23+
"""
24+
25+
# These are the platforms we will build for by default, unless further
26+
# platforms are passed in on the command line
27+
platforms = [
28+
Linux(:i686, libc=:glibc),
29+
Linux(:x86_64, libc=:glibc),
30+
Linux(:aarch64, libc=:glibc),
31+
Linux(:armv7l, libc=:glibc, call_abi=:eabihf),
32+
Linux(:powerpc64le, libc=:glibc),
33+
Linux(:i686, libc=:musl),
34+
Linux(:x86_64, libc=:musl),
35+
Linux(:aarch64, libc=:musl),
36+
Linux(:armv7l, libc=:musl, call_abi=:eabihf),
37+
MacOS(:x86_64)
38+
]
39+
40+
# The products that we will ensure are always built
41+
products = [
42+
ExecutableProduct("bmon", :bmon)
43+
]
44+
45+
# Dependencies that must be installed before this package can be built
46+
dependencies = [
47+
PackageSpec(name="Ncurses_jll", uuid="68e3532b-a499-55ff-9963-d1c0c0748b3a")
48+
PackageSpec(name="libnl_jll", uuid="7c700954-19d3-5208-81e2-8fa5fe7c0bd8")
49+
PackageSpec(name="libconfuse_jll", uuid="9f03c2a6-2865-5578-ae11-af8a29163b66")
50+
]
51+
52+
# Build the tarballs, and possibly a `build.jl` as well.
53+
build_tarballs(ARGS, name, version, sources, script, platforms, products, dependencies)

0 commit comments

Comments
 (0)