Source code
Revision control
Copy as Markdown
Other Tools
#!/bin/sh
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
#
set -e
set -x
# Required fetch artifact
xz_src=${MOZ_FETCHES_DIR}/xz-source
# Actual build
work_dir=`pwd`
dest_dir=${work_dir}/tmp-install
tardir=xz
cd `mktemp -d`
${xz_src}/configure --prefix=/${tardir} CFLAGS=-O2 ${configure_flags_extra} || { exit_status=$? && cat config.log && exit $exit_status ; }
export MAKEFLAGS=-j`nproc`
make
make DESTDIR=${dest_dir} install
cd ${dest_dir}
$(dirname $0)/pack.sh ${tardir}