#!/usr/bin/make -f

PACKAGE = epic5-script-lice
DEST = $(CURDIR)/debian/$(PACKAGE)

%:
	dh $@

override_dh_auto_install:
	# Install script
	cp -dR $(CURDIR)/lice $(DEST)/usr/share/epic5/lice5/
	cp -dR $(CURDIR)/help $(DEST)/usr/share/epic5/lice5/
	cp -dR $(CURDIR)/logos $(DEST)/usr/share/epic5/lice5/
	cp -dR $(CURDIR)/pics $(DEST)/usr/share/epic5/lice5/
	cp -dR $(CURDIR)/themes $(DEST)/usr/share/epic5/lice5/
	cp $(CURDIR)/lice.irc $(DEST)/usr/share/epic5/lice5/

	find $(DEST)/usr/share/epic5/ -type f -exec chmod 644 {} +

	# Disable update functionality
	touch $(DEST)/usr/share/epic5/lice5/disable_update
