Last active
December 12, 2015 04:28
-
-
Save artagnon/4714087 to your computer and use it in GitHub Desktop.
pyjnius_testing/ P4A recipe
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
VERSION_pyjnius_testing= | |
URL_pyjnius_testing=https://github.com/kivy/pyjnius/archive/extend_class_support.zip | |
DEPS_pyjnius_testing=(python) | |
MD5_pyjnius_testing= | |
BUILD_pyjnius_testing=$BUILD_PATH/pyjnius/$(get_directory $URL_pyjnius_testing) | |
RECIPE_pyjnius_testing=$RECIPES_PATH/pyjnius_testing | |
function prebuild_pyjnius_testing() { | |
true | |
} | |
function build_pyjnius_testing() { | |
cd $BUILD_pyjnius_testing | |
push_arm | |
export LDFLAGS="$LDFLAGS -L$LIBS_PATH" | |
export LDSHARED="$LIBLINK" | |
# fake try to be able to cythonize generated files | |
$BUILD_PATH/python-install/bin/python.host setup.py build_ext | |
try find . -iname '*.pyx' -exec cython {} \; | |
try $BUILD_PATH/python-install/bin/python.host setup.py build_ext -v | |
try find build/lib.* -name "*.o" -exec $STRIP {} \; | |
try $BUILD_PATH/python-install/bin/python.host setup.py install -O2 | |
unset LDSHARED | |
pop_arm | |
} | |
function postbuild_pyjnius_testing() { | |
true | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment