File tree Expand file tree Collapse file tree 1 file changed +35
-0
lines changed
Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ # This recipe was tested with the libnacl module
3+ VERSION_libsodium=${VERSION_libsodium:- 1.0.3}
4+ URL_libsodium=https://github.com/jedisct1/libsodium/releases/download/${VERSION_libsodium} /libsodium-${VERSION_libsodium} .tar.gz
5+ DEPS_libsodium=(python)
6+ MD5_libsodium=b3bcc98e34d3250f55ae196822307fab
7+ BUILD_libsodium=$BUILD_PATH /libsodium/$( get_directory $URL_libsodium )
8+ RECIPE_libsodium=$RECIPES_PATH /libsodium
9+
10+ function prebuild_libsodium() {
11+ true
12+ }
13+
14+ function shouldbuild_libsodium() {
15+ if [ -e " $LIBS_PATH /libsodium.so" ]; then
16+ DO_BUILD=0
17+ fi
18+ }
19+
20+ function build_libsodium() {
21+ cd $BUILD_libsodium
22+
23+ push_arm
24+
25+ try ./configure --enable-minimal --disable-soname-versions --host=" arm-linux-androideabi" --enable-shared
26+ try make
27+
28+ try cp -L $BUILD_libsodium /src/libsodium/.libs/libsodium.so $LIBS_PATH
29+
30+ pop_arm
31+ }
32+
33+ function postbuild_libsodium() {
34+ true
35+ }
You can’t perform that action at this time.
0 commit comments