summaryrefslogtreecommitdiff
path: root/recipes/json-glib.recipe
blob: 374f6cbf55bb31785ad3346e58e9eb0f2c287168 (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
# -*- Mode: Python -*- vi:si:et:sw=4:sts=4:ts=4:syntax=python

from cerbero.tools.libtool import LibtoolLibrary

class Recipe(recipe.Recipe):
    name = 'json-glib'
    version = '1.6.2'
    licenses = [License.LGPLv2_1Plus]
    btype = BuildType.MESON
    stype = SourceType.TARBALL
    url = 'gnome://'
    tarball_checksum = 'a33d66c6d038bda46b910c6c6d59c4e15db014e363dc997a0414c2e07d134f24'
    deps = ['glib']

    files_bins = ['json-glib-validate', 'json-glib-format']
    files_libs = ['libjson-glib-1.0']
    files_devel  = ['include/json-glib-1.0', 'lib/pkgconfig/json-glib-1.0.pc']
    files_typelibs = ['Json-1.0']

    def post_install (self):
        lib = LibtoolLibrary('json-glib-1.0', None, None, None, self.config.libdir,
                self.config.target_platform, deps=['gio-2.0', 'gobject-2.0', 'glib-2.0', '-lm', '-pthread'])
        lib.save()
        super().post_install()