Skip to content

Commit

Permalink
Add .build.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
angt committed Jul 11, 2016
1 parent c81592f commit cfd7af9
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .build.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit cfd7af9

Please sign in to comment.