File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed
Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ VERSION_protobuf=${VERSION_protobuf:- 2.6.0}
4+ URL_protobuf=https://protobuf.googlecode.com/svn/rc/protobuf-$VERSION_protobuf .tar.gz
5+ DEPS_protobuf=(python)
6+ MD5_protobuf=9959d86087e64524d7f91e7a5a6e4fd7
7+ BUILD_protobuf=$BUILD_PATH /protobuf/$( get_directory $URL_protobuf ) /python
8+ RECIPE_protobuf=$RECIPES_PATH /protobuf
9+
10+ function prebuild_protobuf() {
11+ true
12+ }
13+
14+ function shouldbuild_protobuf() {
15+ if [ -d " $SITEPACKAGES_PATH /protobuf" ]; then
16+ DO_BUILD=0
17+ fi
18+ }
19+
20+ function build_protobuf() {
21+ cd $BUILD_protobuf
22+
23+ push_arm
24+
25+ try $BUILD_hostpython /hostpython setup.py build
26+ try $BUILD_hostpython /hostpython setup.py install -O2 --root=$BUILD_PATH /python-install --install-lib=lib/python2.7/site-packages
27+
28+ pop_arm
29+ }
30+
31+ function postbuild_protobuf() {
32+ true
33+ }
You can’t perform that action at this time.
0 commit comments