summaryrefslogtreecommitdiff
path: root/recipes/fribidi.recipe
blob: 9d6cafd94cb7debd36e34b912a096fc6fe6c15fd (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
# -*- 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.12'
    stype = SourceType.TARBALL
    btype = BuildType.MESON
    url = 'https://github.com/fribidi/fribidi/releases/download/v%(version)s/fribidi-%(version)s.tar.xz'
    tarball_checksum = '0cd233f97fc8c67bb3ac27ce8440def5d3ffacf516765b91c2cc654498293495'
    licenses = [License.LGPLv2_1Plus]

    # gen.tab/gen-unicode-version needs to be built and run during compilation
    meson_needs_build_machine_compiler = True

    deps = ['glib']
    patches = []

    files_libs = ['libfribidi']
    files_bins = ['fribidi']
    files_devel = ['%(libdir)s/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()