Skip to content

Commit e206fa2

Browse files
authored
Add utf8proc v2.4.0 (#572)
* Add `utf8proc` `v2.4.0` * Only build static library and header
1 parent ab1e35a commit e206fa2

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

U/utf8proc/build_tarballs.jl

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
using BinaryBuilder
2+
3+
name = "utf8proc"
4+
version = v"2.4.0"
5+
6+
# Collection of sources required to complete build
7+
sources = [
8+
ArchiveSource("https://github.com/JuliaStrings/utf8proc/archive/v$(version).tar.gz",
9+
"b2e5d547c1d94762a6d03a7e05cea46092aab68636460ff8648f1295e2cdfbd7"),
10+
]
11+
12+
# Bash recipe for building across all platforms
13+
script = raw"""
14+
cd $WORKSPACE/srcdir/utf8proc-*
15+
make -j${nproc} libutf8proc.a
16+
17+
mkdir -p ${prefix}/lib ${prefix}/include
18+
cp libutf8proc.a ${prefix}/lib/
19+
cp utf8proc.h ${prefix}/include/
20+
"""
21+
22+
# These are the platforms we will build for by default, unless further
23+
# platforms are passed in on the command line
24+
platforms = supported_platforms()
25+
26+
# The products that we will ensure are always built
27+
products = [
28+
FileProduct("lib/libutf8proc.a", :libutf8proc),
29+
]
30+
31+
# Dependencies that must be installed before this package can be built
32+
dependencies = Dependency[
33+
]
34+
35+
# Build the tarballs, and possibly a `build.jl` as well.
36+
build_tarballs(ARGS, name, version, sources, script, platforms, products, dependencies)

0 commit comments

Comments
 (0)