-
Notifications
You must be signed in to change notification settings - Fork 558
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# Note that this script can accept some limited command-line arguments, run | ||
# `julia build_tarballs.jl --help` to see a usage message. | ||
using BinaryBuilder | ||
|
||
name = "Zellij" | ||
version = v"0.24.0" | ||
|
||
# Collection of sources required to complete build | ||
sources = [ | ||
ArchiveSource("https://github.com/zellij-org/zellij/archive/refs/tags/v$(version).tar.gz", | ||
"a7f2d1fa1dd9c55d37d1daebdf6af3c6666d144ee1e85ac7f805544ae03e3b1e"), | ||
] | ||
|
||
# Bash recipe for building across all platforms | ||
script = raw""" | ||
cd $WORKSPACE/srcdir/zellij*/ | ||
cargo build --release | ||
install -Dvm 755 "target/${rust_target}/release/zellij${exeext}" "${bindir}/zellij${exeext}" | ||
""" | ||
|
||
platforms = [ | ||
Platform("i686", "linux"; libc="glibc"), | ||
Platform("x86_64", "linux"; libc="glibc"), | ||
Platform("aarch64", "linux"; libc="glibc"), | ||
Platform("x86_64", "linux"; libc="musl"), | ||
Platform("aarch64", "linux"; libc="musl"), | ||
Platform("x86_64", "macos"), | ||
Platform("aarch64", "macos"), | ||
] | ||
|
||
# The products that we will ensure are always built | ||
products = [ | ||
ExecutableProduct("zellij", :zellij), | ||
] | ||
|
||
# Dependencies that must be installed before this package can be built | ||
dependencies = Dependency[ | ||
] | ||
|
||
# Build the tarballs, and possibly a `build.jl` as well. | ||
build_tarballs(ARGS, name, version, sources, script, platforms, products, dependencies; | ||
julia_compat="1.6", compilers=[:c, :rust], | ||
# Wasmer wants to use `-march`, sigh. | ||
lock_microarchitecture=false, | ||
) |