Skip to content

Commit d028108

Browse files
author
Thomas-Karl Pietrowski
committed
Adding kivy_stable for builds of kivy using stable code.
1 parent 37c2aa0 commit d028108

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

recipes/kivy_stable/recipe.sh

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
#!/bin/bash
2+
3+
VERSION_kivy_stable=1.5.0
4+
URL_kivy_stable=https://github.com/kivy/kivy/archive/$VERSION_kivy_stable.zip
5+
DEPS_kivy_stable=(pygame pyjnius android)
6+
MD5_kivy_stable=
7+
BUILD_kivy_stable=$BUILD_PATH/kivy_stable/$VERSION_kivy_stable
8+
RECIPE_kivy_stable=$RECIPES_PATH/kivy_stable
9+
10+
function prebuild_kivy_stable() {
11+
true
12+
}
13+
14+
function build_kivy_stable() {
15+
if [ -d "$BUILD_PATH/python-install/lib/python2.7/site-packages/kivy" ]; then
16+
#return
17+
true
18+
fi
19+
20+
cd $BUILD_kivy_stable
21+
22+
push_arm
23+
24+
export LDFLAGS="$LDFLAGS -L$LIBS_PATH"
25+
export LDSHARED="$LIBLINK"
26+
27+
# fake try to be able to cythonize generated files
28+
$BUILD_PATH/python-install/bin/python.host setup.py build_ext
29+
try find . -iname '*.pyx' -exec cython {} \;
30+
try $BUILD_PATH/python-install/bin/python.host setup.py build_ext -v
31+
try find build/lib.* -name "*.o" -exec $STRIP {} \;
32+
try $BUILD_PATH/python-install/bin/python.host setup.py install -O2
33+
34+
try rm -rf $BUILD_PATH/python-install/lib/python*/site-packages/kivy/tools
35+
36+
unset LDSHARED
37+
pop_arm
38+
}
39+
40+
function postbuild_kivy_stable() {
41+
true
42+
}
43+

0 commit comments

Comments
 (0)