mirror of
https://github.com/markqvist/Sideband.git
synced 2025-08-03 20:14:24 -04:00
Added custom recipes
This commit is contained in:
parent
17c4febc96
commit
0ef5fe2870
6 changed files with 1762 additions and 0 deletions
22
recipes/libopus/__init__.py
Normal file
22
recipes/libopus/__init__.py
Normal file
|
@ -0,0 +1,22 @@
|
|||
from pythonforandroid.recipe import Recipe
|
||||
from pythonforandroid.toolchain import current_directory, shprint
|
||||
import sh
|
||||
|
||||
|
||||
class OpusRecipe(Recipe):
|
||||
version = '1.5.2'
|
||||
url = "https://downloads.xiph.org/releases/opus/opus-{version}.tar.gz"
|
||||
built_libraries = {'libopus.so': '.libs'}
|
||||
|
||||
def build_arch(self, arch):
|
||||
with current_directory(self.get_build_dir(arch.arch)):
|
||||
env = self.get_recipe_env(arch)
|
||||
flags = [
|
||||
'--host=' + arch.command_prefix,
|
||||
]
|
||||
configure = sh.Command('./configure')
|
||||
shprint(configure, *flags, _env=env)
|
||||
shprint(sh.make, _env=env)
|
||||
|
||||
|
||||
recipe = OpusRecipe()
|
Loading…
Add table
Add a link
Reference in a new issue