#!/usr/bin/make -f

%:
	dh $@

# Upstream's Makefile is bgstack15's system-wide installer, but it is stale
# against the tree (cursor directories are named with underscores now), drops
# Theme/Chicago95/misc (the Start-button badges) and installs the startup-sound
# autostart for every user; installer.py is the per-user GUI. Neither runs.
override_dh_auto_build override_dh_auto_install override_dh_auto_clean:

override_dh_install:
	dh_install
	rm -rf debian/chicago95-theme-cursors/usr/share/icons/*/src
	rm -rf debian/chicago95-theme-cursors/usr/share/icons/*/build
	rm -rf debian/chicago95-theme-gtk/usr/share/themes/Chicago95/gnome-shell/assets-render
	rm -f debian/chicago95-theme-icons/usr/share/icons/*/icon-theme.cache
	rm -f debian/chicago95-theme-plymouth/usr/share/plymouth/themes/RetroTux/install.txt
	chmod 0644 debian/chicago95-theme-fonts/usr/share/fonts/opentype/chicago95/cronyx-cyrillic/*.otb
	install -m0644 "Extras/Microsoft Windows 95 Startup Sound.ogg" \
		debian/chicago95-theme-sounds/usr/share/sounds/Chicago95/startup.ogg

override_dh_missing:
	dh_missing --fail-missing
