lbry-android/p4a/pythonforandroid/recipes/evdev/__init__.py

26 lines
683 B
Python
Raw Normal View History

2017-08-13 03:24:00 +02:00
from pythonforandroid.recipe import CompiledComponentsPythonRecipe
class EvdevRecipe(CompiledComponentsPythonRecipe):
name = 'evdev'
version = 'v0.4.7'
url = 'https://github.com/gvalkov/python-evdev/archive/{version}.zip'
depends = [('python2', 'python3crystax')]
build_cmd = 'build'
patches = ['evcnt.patch',
'keycnt.patch',
'remove-uinput.patch',
'include-dir.patch',
'evdev-permissions.patch']
def get_recipe_env(self, arch=None):
env = super(EvdevRecipe, self).get_recipe_env(arch)
env['NDKPLATFORM'] = self.ctx.ndk_platform
return env
recipe = EvdevRecipe()