blob: f5e0e49c1d130717cc87f134aceaedfd9180a9c8 (
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
|
# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit desktop optfeature shell-completion systemd go-module xdg
DESCRIPTION="Desktop shell for wayland compositors built with Quickshell"
HOMEPAGE="https://github.com/AvengeMedia/DankMaterialShell"
inherit git-r3
EGIT_REPO_URI="https://github.com/AvengeMedia/DankMaterialShell.git"
MAIN_DIR="${S}" # git root
S="${S}/core" # dms cli
QML_DIR="${MAIN_DIR}"/quickshell # qml assets location
PATCHES=("${FILESDIR}"/"${PN}-1.5.3-no-strip.patch")
LICENSE="MIT"
SLOT="0"
IUSE="cups"
DEPEND="
app-misc/jq
dev-cpp/cli11
dev-cpp/cpptrace[unwind]
dev-qt/qtbase:6[dbus,wayland,opengl,vulkan,widgets]
dev-qt/qtdeclarative:6[opengl,vulkan]
dev-qt/qtmultimedia:6[dbus,opengl,vulkan,wayland]
dev-qt/qtshadertools:6
dev-qt/qtwayland:6
gui-apps/quickshell
sys-apps/accountsservice
sys-apps/xdg-desktop-portal-gtk[wayland]
sys-power/upower
kde-frameworks/kimageformats
cups? ( net-print/cups-pk-helper )
"
RDEPEND="${DEPEND}"
BDEPEND="
dev-build/cmake
>=dev-lang/go-1.26.4
dev-util/pkgconf
"
src_unpack() {
git-r3_src_unpack
go-module_live_vendor
rm "${QML_DIR}"/DankCommon || die "failed to delete symlink to DankCommon"
cp -r "${MAIN_DIR}"/dank-qml-common/DankCommon "${QML_DIR}"/DankCommon || die "failed to copy DankCommon dir"
}
src_configure() {
default
}
src_compile() {
# build dms distro binary
emake VERSION="${PV}" DIST_OSES="linux" dist
# generate shell completions
"${S}"/bin/dms-linux-"${ARCH}" completion bash > "${S}"/dms-bashcomp
"${S}"/bin/dms-linux-"${ARCH}" completion zsh > "${S}"/dms-zshcomp
}
src_install() {
# install dms binary
newbin "${S}"/bin/dms-linux-"${ARCH}" dms
# install qml sources at /usr/share/quickshell/dms
insinto /usr/share/quickshell/dms
doins -r "${QML_DIR}/."
# install shell completions
newbashcomp "${S}"/dms-bashcomp dms
newzshcomp "${S}"/dms-zshcomp _dms
# systemd unit
systemd_douserunit "${MAIN_DIR}"/assets/systemd/dms.service
# desktop entry and icon
domenu "${MAIN_DIR}"/assets/dms-open.desktop
doicon -s scalable "${MAIN_DIR}"/assets/danklogo.svg
}
pkg_postinst() {
xdg_pkg_postinst
optfeature_header "Optional programs for extra features:"
optfeature "Audio visualizer" media-sound/cava
optfeature "I2C monitor brightness control" app-misc/ddcutil
optfeature "Power profile options" sys-power/power-profiles-daemon
optfeature "Volume & Speaker control" media-video/wireplumber
optfeature "Bluetooth & file transfer" net-wireless/bluez
optfeature "Calendar integration" app-misc/khal
optfeature "Fingerprint unlock notifier" sys-auth/fprintd
optfeature "Wallpaper based colorscheme" x11-misc/matugen
optfeature "Wifi & Ethernet connection" net-misc/networkmanager
}
|