Skip to content

Commit 181981b

Browse files
committed
add plyer recipe (not distributed by pypi yet)
1 parent 82da05c commit 181981b

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

recipes/plyer/recipe.sh

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#!/bin/bash
2+
3+
VERSION_plyer=${VERSION_plyer:-master}
4+
URL_plyer=https://github.com/plyer/plyer/zipball/$VERSION_plyer/plyer-$VERSION_plyer.zip
5+
DEPS_plyer=(pyjnius android)
6+
MD5_plyer=
7+
BUILD_plyer=$BUILD_PATH/plyer/$(get_directory $URL_plyer)
8+
RECIPE_plyer=$RECIPES_PATH/plyer
9+
10+
function prebuild_plyer() {
11+
true
12+
}
13+
14+
function build_plyer() {
15+
if [ -d "$BUILD_PATH/python-install/lib/python2.7/site-packages/plyer" ]; then
16+
return
17+
fi
18+
19+
cd $BUILD_plyer
20+
21+
push_arm
22+
try $BUILD_PATH/python-install/bin/python.host setup.py install -O2
23+
pop_arm
24+
}
25+
26+
function postbuild_plyer() {
27+
true
28+
}

0 commit comments

Comments
 (0)