summaryrefslogtreecommitdiff
path: root/recipes/fribidi.recipe
blob: f0071cdeb143f418b41be8fba0bf760a6597ccb3 (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
27
28
29
# -*- Mode: Python -*- vi:si:et:sw=4:sts=4:ts=4:syntax=python

from cerbero.tools.libtool import LibtoolLibrary

class Recipe(recipe.Recipe):
    name = 'fribidi'
    version = '1.0.5'
    stype = SourceType.TARBALL
    btype = BuildType.MESON
    url = 'https://github.com/fribidi/fribidi/releases/download/v%(version)s/fribidi-%(version)s.tar.bz2'
    tarball_checksum = '6a64f2a687f5c4f203a46fa659f43dd43d1f8b845df8d723107e8a7e6158e4ce'
    licenses = [License.LGPLv2_1Plus]
    deps = ['glib']
    patches = [
        # Taken from upstream master, remove on bump
        'fribidi/0001-Build-generator-executables-natively.patch',
        # https://github.com/fribidi/fribidi/pull/143
        'fribidi/0001-meson-Use-the-debug-option-directly-instead-of-build.patch',
    ]

    files_libs = ['libfribidi']
    files_bins = ['fribidi']
    files_devel = ['lib/pkgconfig/fribidi.pc', 'include/fribidi']

    def post_install (self):
        lib = LibtoolLibrary('fribidi', None, None, None, self.config.libdir,
                self.config.target_platform, deps=['glib-2.0'])
        lib.save()
        super().post_install()