From cfd7af9241024180a6da62d717c16ec9f9f73455 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20Gallou=C3=ABt?= Date: Mon, 11 Jul 2016 11:13:29 +0000 Subject: [PATCH] Add .build.sh --- .build.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 .build.sh diff --git a/.build.sh b/.build.sh new file mode 100755 index 0000000..1138050 --- /dev/null +++ b/.build.sh @@ -0,0 +1,15 @@ +#!/bin/sh + +export CC="gcc -static" + +git clone https://github.com/jedisct1/libsodium --depth=1 --branch stable +cd libsodium || exit 1 +./autogen.sh && ./configure --enable-minimal --disable-shared --prefix=/usr && make install +cd .. + +./autogen.sh && ./configure && make +[ -x glorytun ] || exit 1 + +mkdir -p deploy +strip -s glorytun +mv glorytun deploy/glorytun-$(cat VERSION)-$(uname -m).bin