summaryrefslogtreecommitdiff
path: root/gui-apps/danksearch/danksearch-0.2.1-r1.ebuild
blob: 0fba7eebcacd4d2fdc932d0a06d8884f2fea5b69 (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
# 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 "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"
}