summaryrefslogtreecommitdiffstats
path: root/packages/wayland-apps/fuzzel/fuzzel-1.15.0.exheres-0
blob: a8dacf5741ab6ff9cc871c40c4a1b16f0b320583 (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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# Copyright 2026 Gurov <thuggerthugger1@duck.com>
# Distributed under the terms of the GNU General Public License v2

require meson

SUMMARY="Application launcher for wlroots based Wayland compositors"
HOMEPAGE="https://codeberg.org/dnkl/fuzzel"
DOWNLOADS="${HOMEPAGE}/releases/download/${PV}/${PNV}.tar.gz"

LICENCES="MIT"
SLOT="0"
PLATFORMS="~amd64"
MYOPTIONS="
    png [[
        description = [ Build with PNG icon support ]
    ]]

    svg [[
        description = [ Build with SVG icon support ]
    ]]
"

DEPENDENCIES="
    build:
        app-doc/scdoc
        dev-libs/tllist[>=1.0.1]
        sys-libs/wayland-protocols[>=1.41]

    build+run:
        media-libs/fcft[<4.0.0&>=3.3.1]
        media-libs/fontconfig
        sys-libs/wayland
        x11-libs/libxkbcommon
        x11-libs/pixman:1[>=0.46.0]

        png? (
            media-libs/libpng
        )

        svg? (
            media-libs/nanosvg
        )
"

src_configure() {
    meson_src_configure \
        -Denable-cairo=disabled \
        -Dpng-backend="$(option png libpng none)" \
        -Dsvg-backend="$(option svg nanosvg none)" \
        -Dsystem-nanosvg="$(option svg enabled disabled)"
}

src_install() {
    meson_src_install
    edo rm -rf "${IMAGE}/usr/share/doc/fuzzel"
}

pkg_postinst() {
    einfo "An example configuration file is installed at"
    einfo "/etc/xdg/fuzzel/fuzzel.ini"
    einfo "Copy it to ~/.config/fuzzel/ and edit it as needed."
}