summaryrefslogtreecommitdiffstats
path: root/taskcluster/scripts/misc/build-xz.sh
diff options
context:
space:
mode:
Diffstat (limited to 'taskcluster/scripts/misc/build-xz.sh')
-rwxr-xr-xtaskcluster/scripts/misc/build-xz.sh25
1 files changed, 25 insertions, 0 deletions
diff --git a/taskcluster/scripts/misc/build-xz.sh b/taskcluster/scripts/misc/build-xz.sh
new file mode 100755
index 0000000000..50bbc9ed0b
--- /dev/null
+++ b/taskcluster/scripts/misc/build-xz.sh
@@ -0,0 +1,25 @@
+#!/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
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+
+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}