Skip to content
Permalink
v2.11.0
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
executable file 54 lines (35 sloc) 835 Bytes
#!/bin/bash
{
set -x
set -e
set -u
. build.profile
. "${PREFIX}/${BUILD_python}/profile"
function B_JBIG2DEC {
BUILD_PKG="${BUILD_jbig2dec}"
PREFIX="${PREFIX}/${BUILD_PKG}"
mkdir -p "${PREFIX}"
cat >"$PREFIX/profile" <<-EOF
PATH="${PREFIX}/bin":\$PATH
PKG_CONFIG_PATH=${PROJECT}/${BUILD_PKG}/lib/pkgconfig\${PKG_CONFIG_PATH:+:}\${PKG_CONFIG_PATH:-}
EOF
if [ ! -d "${BUILD_PKG}" ]; then
if [ ! -e "${BUILD_PKG}.tar" ]; then
git clone https://github.com/ArtifexSoftware/jbig2dec.git --branch "${BUILD_PKG##*-}" --single-branch "${BUILD_PKG}"
tar cf "${BUILD_PKG}.tar" "${BUILD_PKG}"
else
tar -xf "${BUILD_PKG}.tar"
fi
fi
pushd "${BUILD_PKG}"
local _conf=(
--prefix "${PREFIX}"
)
./autogen.sh "${_conf[@]}"
make -j "${NPROC}" install
popd
}
pushd "${BUILD_DIR}"
B_JBIG2DEC
popd
}