aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Mair-Keimberger <mmk@levelnine.at>2023-03-11 14:03:01 +0100
committerMichael Mair-Keimberger <mmk@levelnine.at>2023-03-11 14:03:01 +0100
commit37c96a0279839f3290b4609d7b381c591cd6d6b9 (patch)
tree49e00824c5da86094e1c93b961cca005bd969bb1
parentkde-apps/tokodon: add missing dep (diff)
downloadguru-37c96a0279839f3290b4609d7b381c591cd6d6b9.tar.gz
guru-37c96a0279839f3290b4609d7b381c591cd6d6b9.tar.bz2
guru-37c96a0279839f3290b4609d7b381c591cd6d6b9.zip
guru/gui-apps: add 1.5.4
Signed-off-by: Michael Mair-Keimberger <mmk@levelnine.at>
-rw-r--r--gui-apps/darkman/Manifest2
-rw-r--r--gui-apps/darkman/darkman-1.5.4.ebuild50
-rw-r--r--gui-apps/darkman/metadata.xml11
3 files changed, 63 insertions, 0 deletions
diff --git a/gui-apps/darkman/Manifest b/gui-apps/darkman/Manifest
new file mode 100644
index 000000000..3643e19a2
--- /dev/null
+++ b/gui-apps/darkman/Manifest
@@ -0,0 +1,2 @@
+DIST darkman-1.5.4-vendor.tar.xz 384628 BLAKE2B 3af63f7e676e4ac8209fc490b6e6ea8717268c76917887a3a744926e000a4a9adfae63981376fe88ea0a0cd16273824b23c23f2a85e11f65c13292d921c92958 SHA512 31dfc7ef1005c2bf59b0df32820070b217c7243c5256fb743b1a152619dd57da1a72d5db7a34d8715e3a1f0aa622fd5ba005bfdb1a179d00438e77bc79a9d25e
+DIST darkman-v1.5.4.tar.bz2 21648 BLAKE2B b81f09f0e9cfaf21fca700314a68380672bfbf96b4db1ea9d878de7daf2e2470a83b99e829794384b853161b9ff3687a0587834e5d2a0f14ee6a5436a598fcfe SHA512 a8f687bdb8ca8233434919d0428c7899953f79e80eb1471bb28e695e73906c1577f6e6fb495ae67dee0a44ff9cefffd1eb5a1288d3dd0a33673646e408f02556
diff --git a/gui-apps/darkman/darkman-1.5.4.ebuild b/gui-apps/darkman/darkman-1.5.4.ebuild
new file mode 100644
index 000000000..6f0b4c343
--- /dev/null
+++ b/gui-apps/darkman/darkman-1.5.4.ebuild
@@ -0,0 +1,50 @@
+# Copyright 2019-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit systemd go-module
+
+DESCRIPTION="Framework for dark and light mode transitions"
+HOMEPAGE="https://gitlab.com/WhyNotHugo/darkman"
+SRC_URI="https://gitlab.com/whynothugo/${PN}/-/archive/v${PV}/${PN}-v${PV}.tar.bz2"
+SRC_URI+=" https://files.levelnine.at/${P}-vendor.tar.xz"
+
+LICENSE="ISC"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="+man +examples"
+
+S="${WORKDIR}/${PN}-v${PV}"
+
+RDEPEND="app-misc/geoclue"
+BDEPEND="man? ( app-text/scdoc )"
+
+DOCS=( CHANGELOG.md README.md )
+
+src_compile() {
+ ego build -v -x -o ${PN} -ldflags="-X main.Version=${PV}" ./cmd/${PN}
+
+ if use man; then
+ scdoc < ./${PN}.1.scd > ./${PN}.1 || die
+ fi
+}
+
+src_install() {
+ dobin ${PN}
+
+ systemd_dounit ${PN}.service
+ doman ${PN}.1
+
+ use examples && DOCS+=( examples/. )
+ einstalldocs
+
+ insinto /usr/share/dbus-1/services
+ doins contrib/dbus/*
+
+ insinto /usr/share/xdg-desktop-portal/portals/
+ doins contrib/portal/darkman.portal
+
+ dodir /etc/env.d/
+ echo "XDG_DATA_DIRS=\"~/.local/share/\"" >> "${ED}"/etc/env.d/99darkman || die
+}
diff --git a/gui-apps/darkman/metadata.xml b/gui-apps/darkman/metadata.xml
new file mode 100644
index 000000000..348eb5408
--- /dev/null
+++ b/gui-apps/darkman/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>mmk@levelnine.at</email>
+ <name>Michael Mair-Keimberger</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="gitlab">WhyNotHugo/darkman</remote-id>
+ </upstream>
+</pkgmetadata>