Commit 030ac51c authored by Miroslav Kratochvil's avatar Miroslav Kratochvil
Browse files

WIP: tarball JLL tarball builder

parent 5689b4e6
#!/usr/bin/env julia
using BinaryBuilder, Pkg
# This needs unprivileged containers:
# sysctl kernel.unprivileged_userns_clone=1
name = "SBML"
version = v"5.19.0"
sources = [
DirectorySource("libsbml-cxxwrapjl", target="wrapper"),
script = raw"""
find ${prefix}
cd ${WORKSPACE}/srcdir/libsbml-5.19.0
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=${WORKSPACE}/srcdir/libsbml-install -DCMAKE_INCLUDE_PATH="${prefix}/include/libxml2;${prefix}/include" -DCMAKE_LIBRARY_PATH=${prefix}/lib ..
make -j${nproc}
make install
cd ${WORKSPACE}/srcdir/wrapper
mkdir build
cd build
PKG_CONFIG_PATH=${WORKSPACE}/srcdir/libsbml-install/lib/pkgconfig cmake -DCMAKE_INSTALL_PREFIX=${prefix} ..
make -j${nproc}
make install
#platforms = supported_platforms()
Linux(:x86_64, libc=:glibc),
products = [
LibraryProduct("libsbml-cxxwrapjl", :libsbml),
dependencies = [
BuildDependency(PackageSpec(name="Julia_jll")), #see ygdrassil/SDPA
build_tarballs(ARGS, name, version, sources, script, platforms, products, dependencies)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment