summaryrefslogtreecommitdiff
path: root/dux-desktop/dux-files/dux-files-2.0.0.ebuild
blob: bd2f2ca0ddcc8e5671cac225a4c8f630a394f5ac (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
# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit optfeature systemd xdg

DESCRIPTION="File manager from Dux Labs"
HOMEPAGE="https://github.com/duxlabs-dev/dux-files"
SRC_URI="https://github.com/duxlabs-dev/${PN}/releases/download/v${PV}/dfiles-${PV}.tar.gz"

S="${WORKDIR}/dfiles-${PV}"

LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"

DEPEND="
	gui-apps/quickshell
"
RDEPEND="${DEPEND}"
BDEPEND="
	>=dev-lang/go-1.27.1
"

src_prepare(){
	default
	sed -i "s/-s -w //g" core/Makefile || die "failed to remove stripping of debug symbols"
}

src_compile() {
	cd core || die "Failed to cd"
	emake VERSION="${PV}" build
}

src_install() {
	emake DESTDIR="${ED}" PREFIX="/usr" install
	systemd_douserunit assets/systemd/dfiles.service
}

pkg_postinst() {
	xdg_pkg_postinst
	optfeature_header "Optional programs for extra features:"
	optfeature "Thumbnailer sandbox" sys-apps/bubblewrap
	optfeature "Video thumbnails" media-video/ffmpegthumbnailer
	optfeature "PDF thumbnails" app-text/poppler
	optfeature "Network shares and removeable drives" gnome-base/gvfs
	optfeature "Devices sidebar" sys-fs/udisks
}