Skip to content
Permalink
d7aaa06a20
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 46 lines (29 sloc) 859 Bytes
#!/bin/bash
{
set -x
set -e
set -u
. build.profile
function B_LEPTONICA {
# SRCURL[0]="https://github.com/DanBloomberg/leptonica/releases/download/1.84.1/leptonica-1.84.1.tar.gz"
SRCURL="https://beehive.molgen.mpg.de/01e6de7af2ba93b8350cdc3f7aeb0fbf/leptonica-1.84.1.tar.gz"
BUILD_PKG=${BUILD_leptonica}
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
test -e ${BUILD_PKG}.tar.gz || wget -nv ${SRCURL} -O ${BUILD_PKG}.tar.gz
test -d ${BUILD_PKG} || mkdir -pv ${BUILD_PKG} && tar -xf ${BUILD_PKG}.tar.gz --strip-components=1 -C ${BUILD_PKG}
cd ${BUILD_PKG}
local _conf=(
--prefix ${PREFIX}
)
./configure "${_conf[@]}"
make -j ${NPROC} install
}
pushd "${BUILD_DIR}"
B_LEPTONICA
popd
}