summaryrefslogtreecommitdiff
path: root/gui-apps/danksearch
diff options
context:
space:
mode:
authorroot <root@alpha.trunkmasters.com>2026-08-09 03:04:49 -0500
committerroot <root@alpha.trunkmasters.com>2026-08-09 03:04:49 -0500
commit92f6d12bf21434879bac739a9c4c7d9924ce3bad (patch)
tree9a92a97abce6dfa06d4b8bbf4be3083e1bc36207 /gui-apps/danksearch
parent09db256d16c907238beb9d50761d320ac661c08e (diff)
downloadbaldeagleos-repo-92f6d12bf21434879bac739a9c4c7d9924ce3bad.tar.gz
baldeagleos-repo-92f6d12bf21434879bac739a9c4c7d9924ce3bad.tar.xz
baldeagleos-repo-92f6d12bf21434879bac739a9c4c7d9924ce3bad.zip
Adding metadata
Diffstat (limited to 'gui-apps/danksearch')
-rw-r--r--gui-apps/danksearch/Manifest1
-rw-r--r--gui-apps/danksearch/danksearch-0.2.1-r1.ebuild (renamed from gui-apps/danksearch/danksearch-0.2.1.ebuild)4
-rw-r--r--gui-apps/danksearch/danksearch-0.3.2.ebuild33
-rw-r--r--gui-apps/danksearch/files/danksearch-0.3.2-no-strip.patch19
4 files changed, 55 insertions, 2 deletions
diff --git a/gui-apps/danksearch/Manifest b/gui-apps/danksearch/Manifest
index 805fd26ea17a..d9aa63dc37c5 100644
--- a/gui-apps/danksearch/Manifest
+++ b/gui-apps/danksearch/Manifest
@@ -1 +1,2 @@
DIST danksearch-0.2.1.tar.gz 33017110 BLAKE2B 671408cc0361b2dd2fdda1a2970f81152298f873567d5af435bdd713130840c7f8b838914c41ae02458ce0d6d66cfd53b4758f4f8c076fb7741ff7805c7bc60f SHA512 cf97b21db84af75bf23adc4d15318e85efced5dff0d2ebe1f58300b6e47b0a50386096fa3fda7142a846e1140036eea88ee350a05ad341b20f560344093103d2
+DIST danksearch-0.3.2.tar.gz 33956223 BLAKE2B 5bae5fb6b0c892a17714283946517c7a02c5adc32b3b4d2cee4c5cadfd4433deff1e7ae1fc1cf48fc0fe3fa33ca8d3a077bff153e02748843d265df3752f124a SHA512 2368f993e32c4fedc36c02dab03f3c6f68d630b1b4a21c139ae877f5f4f0c5e5dbbe83ea66149e1d299afac5727725934a7d453548e29beb8fea820f6d788e2b
diff --git a/gui-apps/danksearch/danksearch-0.2.1.ebuild b/gui-apps/danksearch/danksearch-0.2.1-r1.ebuild
index fe94b64a74ca..ed2988409ecd 100644
--- a/gui-apps/danksearch/danksearch-0.2.1.ebuild
+++ b/gui-apps/danksearch/danksearch-0.2.1-r1.ebuild
@@ -15,9 +15,9 @@ LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
-BDEPEND=">=dev-lang/go-1.24"
+BDEPEND=">=dev-lang/go-1.25.0"
-RESTRICT="strip"
+PATCHES=("${FILESDIR}"/"${PN}-0.3.2-no-strip.patch")
src_compile() {
sed -i '/^GOFLAGS=/d' "${S}/Makefile"
diff --git a/gui-apps/danksearch/danksearch-0.3.2.ebuild b/gui-apps/danksearch/danksearch-0.3.2.ebuild
new file mode 100644
index 000000000000..ed2988409ecd
--- /dev/null
+++ b/gui-apps/danksearch/danksearch-0.3.2.ebuild
@@ -0,0 +1,33 @@
+# Copyright 2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit go-module systemd
+
+DESCRIPTION="Indexed filesystem search in GO"
+HOMEPAGE="https://github.com/AvengeMedia/danksearch"
+SRC_URI="https://github.com/AvengeMedia/${PN}/releases/download/v${PV}/dsearch-${PV}.tar.gz -> ${P}.tar.gz"
+
+S="${WORKDIR}/dsearch-${PV}"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+
+BDEPEND=">=dev-lang/go-1.25.0"
+
+PATCHES=("${FILESDIR}"/"${PN}-0.3.2-no-strip.patch")
+
+src_compile() {
+ sed -i '/^GOFLAGS=/d' "${S}/Makefile"
+ sed -i "s/^VERSION=.*$/VERSION=\"${PV}\"/" "${S}/Makefile"
+ sed -i 's/local\///' "${S}/assets/dsearch.service"
+
+ default
+}
+
+src_install() {
+ dobin "${S}/bin/dsearch"
+ systemd_douserunit "${S}/assets/dsearch.service"
+}
diff --git a/gui-apps/danksearch/files/danksearch-0.3.2-no-strip.patch b/gui-apps/danksearch/files/danksearch-0.3.2-no-strip.patch
new file mode 100644
index 000000000000..4cffa6b6493d
--- /dev/null
+++ b/gui-apps/danksearch/files/danksearch-0.3.2-no-strip.patch
@@ -0,0 +1,19 @@
+diff --git a/Makefile b/Makefile
+index d258a8a..84b64af 100644
+--- a/Makefile
++++ b/Makefile
+@@ -9,13 +9,12 @@ SYSTEMD_USER_DIR=$(HOME)/.config/systemd/user
+ SERVICE_NAME=dsearch
+
+ GO=go
+-GOFLAGS=-ldflags="-s -w"
+
+ VERSION=$(shell git describe --tags --always 2>/dev/null || echo "dev")
+ BUILD_TIME=$(shell date -u '+%Y-%m-%d_%H:%M:%S')
+ COMMIT=$(shell git rev-parse --short HEAD 2>/dev/null || echo "unknown")
+
+-BUILD_LDFLAGS=-ldflags="-s -w -X main.Version=$(VERSION) -X main.buildTime=$(BUILD_TIME) -X main.commit=$(COMMIT)"
++BUILD_LDFLAGS=-ldflags="-X main.Version=$(VERSION) -X main.buildTime=$(BUILD_TIME) -X main.commit=$(COMMIT)"
+
+ .PHONY: all build clean install uninstall test fmt vet deps help install-service uninstall-service
+