Skip to content

Instantly share code, notes, and snippets.

@dpo
Created May 15, 2020 00:19
Show Gist options
  • Save dpo/b6506f2330849bc132440663a8925954 to your computer and use it in GitHub Desktop.
Save dpo/b6506f2330849bc132440663a8925954 to your computer and use it in GitHub Desktop.
using BinaryBuilder
name = "Bogus"
version = v"0.0.1"
sources = [ # download anything, it doesn't matter
ArchiveSource("https://github.com/JuliaPackaging/BinaryBuilder.jl/archive/v0.2.4.tar.gz",
"46de5242addad8825beac7b7ef254a9b4eb5f1b70a54f6f438b182d9a57f9f07"),
]
# Bash recipe for building across all platforms
script = raw"""
# what's in here doesn't matter either
echo "#!/bin/bash" > bogus
echo 'echo "hello binary builder!"' >> bogus
chmod +x bogus
mkdir -p $bindir
cp bogus $bindir/bogus
echo "license: free for all" > license.txt
install_license license.txt
"""
platforms = [
Windows(:x86_64),
]
# The products that we will ensure are always built
products = [
ExecutableProduct("bogus", :bogus),
]
# Dependencies that must be installed before this package can be built
dependencies = [
Dependency("MKL_jll"), # <-- this is what matters
]
# Build the tarballs, and possibly a `build.jl` as well.
build_tarballs(ARGS, name, version, sources, script, platforms, products, dependencies)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment