Skip to content

Commit

Permalink
initial commit adding libunistring (JuliaPackaging#3669)
Browse files Browse the repository at this point in the history
  • Loading branch information
Crghilardi authored and simeonschaub committed Feb 23, 2022
1 parent 1c9c464 commit c4ed8c8
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions L/libunistring/build_tarballs.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Note that this script can accept some limited command-line arguments, run
# `julia build_tarballs.jl --help` to see a usage message.
using BinaryBuilder, Pkg

name = "libunistring"
version = v"0.9.10"

# Collection of sources required to complete build
sources = [
ArchiveSource("https://ftp.gnu.org/gnu/libunistring/libunistring-$(version).tar.gz", "a82e5b333339a88ea4608e4635479a1cfb2e01aafb925e1290b65710d43f610b")
]

# Bash recipe for building across all platforms
script = raw"""
cd $WORKSPACE/srcdir/libunistring-*
./configure \
--prefix=${prefix} \
--build=${MACHTYPE} \
--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(; experimental = true)


# The products that we will ensure are always built
products = [
LibraryProduct("libunistring", :libunistring)
]

# Dependencies that must be installed before this package can be built
dependencies = Dependency[
Dependency("Libiconv_jll"),
]

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

0 comments on commit c4ed8c8

Please sign in to comment.