mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-06-30 15:02:15 -04:00
60 lines
2.4 KiB
Plaintext
60 lines
2.4 KiB
Plaintext
# Template file for 'dms-git'
|
|
#
|
|
# DankMaterialShell git development release
|
|
#
|
|
# NOTE: This template is built exclusively by CI. The workflow stages a local
|
|
# source tarball and dynamically patches version, checksum, and distfiles
|
|
# before calling xbps-src. Do not attempt to build this template manually
|
|
# without first providing the source archive.
|
|
#
|
|
# The binary is built with the `distro_binary` build tag (drops the in-app
|
|
# self-update command).
|
|
pkgname=dms-git
|
|
version=1.4.6.git
|
|
revision=1
|
|
create_wrksrc=yes
|
|
build_style=go
|
|
build_wrksrc="core"
|
|
go_import_path="github.com/AvengeMedia/DankMaterialShell/core"
|
|
go_package="${go_import_path}/cmd/dms"
|
|
go_build_tags="distro_binary"
|
|
go_ldflags="-X main.Version=${version}"
|
|
short_desc="DankMaterialShell — Material 3 desktop shell for Wayland (git variant)"
|
|
maintainer="AvengeMedia <AvengeMedia.US@gmail.com>"
|
|
license="MIT"
|
|
homepage="https://danklinux.com"
|
|
# CI populates distfiles/checksum dynamically; these are placeholders.
|
|
distfiles="https://github.com/AvengeMedia/DankMaterialShell/archive/refs/tags/v${version}.tar.gz"
|
|
checksum=badbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadb
|
|
|
|
# Conflicts and provides
|
|
conflicts="dms"
|
|
provides="dms-${version}_${revision}"
|
|
|
|
# Optional feature deps are listed in distro/void/README.md.
|
|
depends="quickshell accountsservice dgop matugen dbus"
|
|
|
|
post_install() {
|
|
# QML shell tree (build_style=go already installed the dms binary)
|
|
vmkdir usr/share/quickshell/dms
|
|
vcopy "${wrksrc}/quickshell/*" usr/share/quickshell/dms
|
|
echo "${version}" > "${DESTDIR}/usr/share/quickshell/dms/VERSION"
|
|
|
|
# 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/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"
|
|
}
|