# Template file for 'dms' # # DankMaterialShell stable release # # NOTE: the binary is built with the `distro_binary` build tag (drops the # in-app self-update command) and `withshell` (embeds the Quickshell UI; the # shell no longer discovers an installed tree, so an unembedded binary has no UI). # CI rewrites version/checksum from the selected release tag before building. pkgname=dms version=1.5.0 revision=2 build_style=go build_wrksrc="core" hostmakedepends="make tar" go_import_path="github.com/AvengeMedia/DankMaterialShell/core" go_package="${go_import_path}/cmd/dms" go_build_tags="distro_binary withshell" go_ldflags="-X main.Version=${version}" short_desc="DankMaterialShell — Material 3 desktop shell for Wayland" maintainer="AvengeMedia " license="MIT" homepage="https://danklinux.com" changelog="https://github.com/AvengeMedia/DankMaterialShell/releases" distfiles="https://github.com/AvengeMedia/DankMaterialShell/releases/download/v${version}/dms-source.tar.gz" checksum=14f2678d6a15223ba069d1b8c8a21a5564b735d190c231f62ed44fd8bf48677c # Optional feature deps are listed in distro/void/README.md. depends="quickshell accountsservice dgop matugen dbus elogind mesa-dri" pre_build() { make sync-shell } post_install() { # Desktop entry + icon vinstall "${wrksrc}/assets/dms-open.desktop" 644 usr/share/applications vinstall "${wrksrc}/assets/com.danklinux.dms.desktop" 644 usr/share/applications vinstall "${wrksrc}/assets/com.danklinux.dms.notepad.desktop" 644 usr/share/applications vinstall "${wrksrc}/assets/danklogo.svg" 644 usr/share/icons/hicolor/scalable/apps # Shell completions (generated by the built binary; skip when cross-building) vmkdir usr/share/bash-completion/completions vmkdir usr/share/zsh/site-functions vmkdir usr/share/fish/vendor_completions.d if [ -z "$CROSS_BUILD" ]; then "${DESTDIR}/usr/bin/dms" completion bash > "${DESTDIR}/usr/share/bash-completion/completions/dms" "${DESTDIR}/usr/bin/dms" completion zsh > "${DESTDIR}/usr/share/zsh/site-functions/_dms" "${DESTDIR}/usr/bin/dms" completion fish > "${DESTDIR}/usr/share/fish/vendor_completions.d/dms.fish" fi vlicense "${wrksrc}/LICENSE" }