Sha256: b9418cb637f618030e2d0e3e6b5e030eae9c4b0fb8119d33a388f2c96fed9795

Contents?: true

Size: 669 Bytes

Versions: 2

Compression:

Stored size: 669 Bytes

Contents

#!/bin/bash

# (c) Copyright 2018 Ribose Inc.
#

# Based on:
# https://github.com/riboseinc/ruby-rnp/blob/52d6113458cb095cf7811/ci/install.sh

set -eux

: "${CORES:=2}"
: "${MAKE:=make}"

rnp_build="${DEPS_BUILD_DIR}/rnp"

if [ ! -e "${RNP_PREFIX}/lib/librnp.so" ] && \
	 [ ! -e "${RNP_PREFIX}/lib/librnp.dylib" ]; then

	git clone https://github.com/riboseinc/rnp ${rnp_build}
	pushd "${rnp_build}"
	git checkout "$RNP_VERSION"
	cmake \
		-DCMAKE_BUILD_TYPE=RelWithDebInfo \
		-DBUILD_SHARED_LIBS=yes \
		-DBUILD_TESTING=no \
		-DCMAKE_PREFIX_PATH="${BOTAN_PREFIX};${JSONC_PREFIX}" \
		-DCMAKE_INSTALL_PREFIX="${RNP_PREFIX}" \
		.
	${MAKE} -j${CORES} install
	popd
fi

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
enmail-0.2.1 ci/install_rnp.sh
enmail-0.2.0 ci/install_rnp.sh