Skip to content

Commit

Permalink
[bsdiff_endsley] Update Bzip2 compat (#9650)
Browse files Browse the repository at this point in the history
* [bsdiff_endsley] Update Bzip2 compat

This will help testing JuliaIO/BSDiff.jl#49

* use git source

* fix cd directory

* remove extra CPPFLAGS
  • Loading branch information
nhz2 authored Oct 20, 2024
1 parent 082655a commit 3d3a77a
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions B/bsdiff_endsley/build_tarballs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,17 @@
using BinaryBuilder, Pkg

name = "bsdiff_endsley"
version = v"4.3.0"
version = v"4.3.1"

# Collection of sources required to complete build
sources = [
ArchiveSource("https://github.com/mendsley/bsdiff/archive/64ad986cb7bfa8b9145a2d48cd95986660b35d53.tar.gz", "1181466689aa224f4a2dd2376820588c67d20f4f0d50055339fcb171fb877a29"),
GitSource("https://github.com/mendsley/bsdiff.git", "64ad986cb7bfa8b9145a2d48cd95986660b35d53"),
]

# Bash recipe for building across all platforms
script = raw"""
cd $WORKSPACE/srcdir/bsdiff-64ad986cb7bfa8b9145a2d48cd95986660b35d53
./autogen.sh
export CPPFLAGS="-I${prefix}/include"
cd $WORKSPACE/srcdir/bsdiff
./autogen.sh
./configure --prefix=${prefix} --build=${MACHTYPE} --host=${target}
make -j${nproc}
make install
Expand All @@ -32,10 +31,8 @@ products = [

# Dependencies that must be installed before this package can be built
dependencies = [
# Future versions of bzip2 should allow a more relaxed compat because the
# soname of the macOS library shouldn't change at every patch release.
Dependency("Bzip2_jll", v"1.0.6"; compat="=1.0.6"),
Dependency("Bzip2_jll"; compat="1.0.8"),
]

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

0 comments on commit 3d3a77a

Please sign in to comment.