From 2f3ded4dfd590bee6f16ec349610f7da30994ae5 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Sat, 8 May 2021 04:44:53 +0200 Subject: Ports: Add port for libsodium --- Ports/libsodium/package.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 Ports/libsodium/package.sh (limited to 'Ports/libsodium') diff --git a/Ports/libsodium/package.sh b/Ports/libsodium/package.sh new file mode 100755 index 0000000000..126550d907 --- /dev/null +++ b/Ports/libsodium/package.sh @@ -0,0 +1,13 @@ +#!/usr/bin/env -S bash ../.port_include.sh +port=libsodium +version=1.0.18-stable +useconfigure=true +workdir=libsodium-stable +files="https://download.libsodium.org/libsodium/releases/libsodium-${version}.tar.gz libsodium-${version}.tar.gz 3c240fcd414189492d7c7dc12d2cf48f67bf04142ce2f60b620adb5bac6ca732" +auth_type=sha256 + +install() { + run make DESTDIR=${SERENITY_INSTALL_ROOT} $installopts install + ${CC} -shared -pthread -o ${SERENITY_INSTALL_ROOT}/usr/local/lib/libsodium.so -Wl,-soname,libsodium.so -Wl,--whole-archive ${SERENITY_INSTALL_ROOT}/usr/local/lib/libsodium.a -Wl,--no-whole-archive + rm -f ${SERENITY_INSTALL_ROOT}/usr/local/lib/libsodium.la +} -- cgit v1.2.3