summaryrefslogtreecommitdiff
path: root/recipes/gst-sdk-shell.recipe
blob: e0e55f99688388f0140d4485306c7ab003ae83bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# -*- Mode: Python -*- vi:si:et:sw=4:sts=4:ts=4:syntax=python

import os

class Recipe(recipe.Recipe):
    name = 'gst-sdk-shell'
    version = '0.1'
    licenses = [License.LGPL]
    btype = BuildType.CUSTOM
    stype = SourceType.CUSTOM

    files_shell = ['bin/gst-sdk-shell', 'share/gst-sdk/gst-sdk-env']

    def install(self):
        from cerbero.commands.gensdkshell import GenSdkShell
        name = self.files_shell[0]
        prefix = self.config.prefix
        libdir = os.path.join(prefix, 'lib')
        py_prefix = self.config.py_prefix
        output_dir = prefix
        gensdkshell = GenSdkShell()
        gensdkshell.runargs(self.config, name, output_dir, prefix, libdir,
                py_prefix)
        name = self.files_shell[1]
        gensdkshell.runargs(self.config, name, output_dir, prefix, libdir,
                py_prefix, cmd='')