forked from kivy/python-for-android
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrecipe.sh
More file actions
40 lines (31 loc) · 955 Bytes
/
recipe.sh
File metadata and controls
40 lines (31 loc) · 955 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/bash
URL_polygon=https://bitbucket.org/jraedler/polygon2/get/ec07628ee633.zip
DEPS_polygon=(python)
MD5_polygon=
BUILD_polygon=$BUILD_PATH/polygon/$(get_directory $URL_polygon)
RECIPE_polygon=$RECIPES_PATH/polygon
function prebuild_polygon() {
true
}
function shouldbuild_polygon() {
if [ -d "$SITEPACKAGES_PATH/polygon" ]; then
DO_BUILD=0
fi
}
function build_polygon() {
cd $BUILD_polygon
echo "helllooo"
push_arm
export LDSHARED="$LIBLINK"
try find . -iname '*.pyx' -exec $CYTHON {} \;
try $HOSTPYTHON setup.py build_ext -v
try find build/lib.* -name "*.o" -exec $STRIP {} \;
export PYTHONPATH=$BUILD_hostpython/Lib/site-packages
echo $BUILD_hostpython/hostpython
try $BUILD_hostpython/hostpython setup.py install -O2 --root=$BUILD_PATH/python-install --install-lib=lib/python2.7/site-packages
unset LDSHARED
pop_arm
}
function postbuild_polygon() {
true
}