summaryrefslogtreecommitdiffstats
path: root/packages/x11-misc/nwg-look
diff options
context:
space:
mode:
Diffstat (limited to 'packages/x11-misc/nwg-look')
-rw-r--r--packages/x11-misc/nwg-look/nwg-look-1.1.2.exheres-066
1 files changed, 66 insertions, 0 deletions
diff --git a/packages/x11-misc/nwg-look/nwg-look-1.1.2.exheres-0 b/packages/x11-misc/nwg-look/nwg-look-1.1.2.exheres-0
new file mode 100644
index 0000000..a3f74be
--- /dev/null
+++ b/packages/x11-misc/nwg-look/nwg-look-1.1.2.exheres-0
@@ -0,0 +1,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
+}