1
0
Fork 0
mirror of https://github.com/pygos/build.git synced 2024-05-20 12:36:14 +02:00
build/pkg/openssl/build

34 lines
722 B
Plaintext
Raw Normal View History

VERSION="1.1.0g"
SRCDIR="openssl-${VERSION}"
TARBALL="${SRCDIR}.tar.gz"
URL="https://www.openssl.org/source"
SHA256SUM="de4d501267da39310905cb6dc8c6121f7a2cad45a7707f76df828fe1b85073af"
DEPENDS="zlib"
prepare() {
return
}
build() {
$1/Configure --prefix=/ --cross-compile-prefix="${TARGET}-" \
--openssldir=/etc/ssl --libdir=/lib \
-DOPENSSL_NO_HEARTBEATS \
threads shared zlib-dynamic no-async $OPENSSL_TARGET
make -j 1
}
deploy() {
local SOURCE="$1"
local DEPLOY="$2"
local DEVDEPLOY="$3"
make DESTDIR="$DEPLOY" install
rm "$DEPLOY/bin/c_rehash"
rm -r "$DEPLOY/etc/ssl/misc" "$DEPLOY/share"
split_dev_deploy "$DEPLOY" "$DEVDEPLOY"
strip_files ${DEPLOY}/bin/* ${DEPLOY}/lib/*.so*
}