Skip to content

Instantly share code, notes, and snippets.

@artagnon
Last active December 12, 2015 04:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save artagnon/4714087 to your computer and use it in GitHub Desktop.
Save artagnon/4714087 to your computer and use it in GitHub Desktop.
pyjnius_testing/ P4A recipe
#!/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