summaryrefslogtreecommitdiff
path: root/repo/harfbuzz/harfbuzz.xibuild
blob: bd8225724beef8c5e3b191f049aca88b953e8567 (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
30
#!/bin/sh

NAME="harfbuzz"
DESC="Text shaping library"

MAKEDEPS="cairo meson ninja gtk-doc python-pygments gobject-introspection"
DEPS="freetype2 glib graphite musl "

PKG_VER=4.2.0
SOURCE="https://github.com/harfbuzz/harfbuzz/archive/$PKG_VER.tar.gz"

build () {
    mkdir build &&
    cd build    &&
    meson --prefix=/usr \
            -Ddefault_library=shared \
    		-Dglib=enabled \
            -Dgobject=enabled \
            -Dgraphite=enabled \
            -Dicu=enabled \
            -Dfreetype=enabled \
            -Dcairo=enabled \
            -Ddocs=enabled \
            .. &&
    ninja
}

package () {
    DESTDIR=$PKG_DEST ninja install
}