Skip to content

Commit

Permalink
Add Nettle v3.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
staticfloat committed Dec 29, 2018
1 parent 9489aad commit c1aa355
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions Nettle/build_tarballs.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
using BinaryBuilder

# Collection of sources required to build Nettle
name = "Nettle"
version = v"3.4.1"
sources = [
"https://ftp.gnu.org/gnu/nettle/nettle-$(version).tar.gz" =>
"f941cf1535cd5d1819be5ccae5babef01f6db611f9b5a777bae9c7604b8a92ad",
]

# Bash recipe for building across all platforms
script = raw"""
cd $WORKSPACE/srcdir/nettle-*/
./configure --prefix=$prefix --host=$target
make -j${nproc}
make install
"""

# These are the platforms we will build for by default, unless further
# platforms are passed in on the command line
platforms = supported_platforms()

# The products that we will ensure are always built
products(prefix) = [
LibraryProduct(prefix, "libnettle", :libnettle),
ExecutableProduct(prefix, "nettle-hash", :nettle_hash)
]

# Dependencies that must be installed before this package can be built
dependencies = [
]

# Build the tarballs, and possibly a `build.jl` as well.
build_tarballs(ARGS, name, version, sources, script, platforms, products, dependencies)

0 comments on commit c1aa355

Please sign in to comment.