Files
Matteo Benedetto a51ce1e816 feat: Tema sonoro DeepSpace per KDE Plasma
- index.theme con Directories=stereo, OutputProfile=stereo,
  Inherits=freedesktop ed Example=theme-demo
- 61 cue sintetizzati da zero (Ogg Vorbis 48 kHz stereo) piu' il montaggio
  di anteprima theme-demo.oga
- tools/gen_sounds.py: motore di sintesi riproducibile (voci FM, pluck
  Karplus-Strong, rumore a banda variabile, sub-impact, pad additivi,
  riverbero a convoluzione, modello di degrado)
- tools/verify_theme.py: verifica della spec, igiene audio (clipping, DC,
  click ai bordi) e copertura dei nomi suono richiesti dai notifyrc di KDE
- preview/index.html: player nel browser per ogni cue del tema
- Makefile, install.sh, LICENSES (audio CC-BY-SA-4.0, codice BSD-2-Clause)
2026-09-20 16:12:47 +02:00

57 lines
1.6 KiB
Makefile

# DeepSpace — sound theme for KDE Plasma
# SPDX-License-Identifier: BSD-2-Clause
THEME := DeepSpace
PALETTE := deepspace
VERSION := 1.0.0
PREFIX ?= $(HOME)/.local
DESTDIR ?=
REPO := kde-sound-theme-deepspace
.DEFAULT_GOAL := verify
.PHONY: all generate verify preview dist install install-system uninstall clean FORCE
all: verify
## Regenerate every cue in $(THEME)/stereo from the synthesis script.
generate:
python3 tools/gen_sounds.py --theme $(PALETTE) --out .
@echo "-> rigenerati i cue di $(THEME)"
## Validate the theme (spec, audio hygiene, KDE sound-name coverage).
verify:
python3 tools/verify_theme.py $(THEME)
## Rebuild the browser preview page.
preview: FORCE
python3 tools/make_preview.py $(THEME) preview/index.html
## Build the distributable tarball.
dist:
@mkdir -p dist
@tar --exclude-vcs --exclude=dist --exclude=__pycache__ \
-czf dist/$(REPO)-$(VERSION).tar.gz \
$(THEME) tools Makefile install.sh README.md CHANGELOG.md LICENSES preview
@echo "-> dist/$(REPO)-$(VERSION).tar.gz"
## Install for the current user into $(PREFIX)/share/sounds.
install:
install -d $(DESTDIR)$(PREFIX)/share/sounds/$(THEME)
cp -r $(THEME)/. $(DESTDIR)$(PREFIX)/share/sounds/$(THEME)/
@echo "-> $(DESTDIR)$(PREFIX)/share/sounds/$(THEME)"
@echo " selezionalo da Impostazioni di sistema > Colori e temi > Suoni di sistema"
## Install system-wide (needs root).
install-system:
$(MAKE) install PREFIX=/usr
uninstall:
rm -rf $(DESTDIR)$(PREFIX)/share/sounds/$(THEME)
@echo "-> rimosso $(DESTDIR)$(PREFIX)/share/sounds/$(THEME)"
clean:
rm -rf dist __pycache__ tools/__pycache__
FORCE: