summaryrefslogtreecommitdiffstats
path: root/packages/x11-misc/nwg-look/nwg-look-1.1.2.exheres-0
blob: a3f74be9fedd1c55fcf48da06c97d6b5a1c65e90 (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
63
64
65
66
# Copyright 2026 Gurov <thuggerthugger1@duck.com>
# Distributed under the terms of the GNU General Public License v2

SUMMARY="GTK3 settings editor adapted to work in wlroots-based compositors"
HOMEPAGE="https://github.com/nwg-piotr/nwg-look"

DOWNLOADS="
    https://github.com/nwg-piotr/nwg-look/archive/refs/tags/v${PV}.tar.gz
        -> ${PNV}.tar.gz
"

LICENCES="MIT"
SLOT="0"
PLATFORMS="~amd64"

DEPENDENCIES="
    build:
        dev-lang/go[>=1.26]

    build+run:
        dev-libs/glib
        media-libs/fontconfig
        media-libs/freetype
        x11-libs/harfbuzz
        x11-misc/xcur2png
        x11-libs/cairo
        x11-libs/gdk-pixbuf
        x11-libs/gtk+:3
        x11-libs/pango
"

src_prepare() {
    default

    export GOMODCACHE="${WORKBASE}/gomodcache"
    export GOCACHE="${WORKBASE}/gocache"

    esandbox disable_net
    edo go mod download
    esandbox enable_net
}

src_compile() {
    export GOMODCACHE="${WORKBASE}/gomodcache"
    export GOCACHE="${WORKBASE}/gocache"

    emake build
}

src_install() {
    insinto /usr/share/nwg-look
    doins stuff/main.glade
    doins -r langs

    insinto /usr/share/pixmaps
    doins stuff/nwg-look.svg

    insinto /usr/share/applications
    doins stuff/nwg-look.desktop

    dobin bin/nwg-look

    docinto nwg-look
    dodoc README.md
    dodoc LICENSE
}