#!/usr/bin/make -f

STANDARD_CARDSETS = 2000 \
          crystal-mahjongg \
          dashavatara-ganjifa \
          dondorf \
          gnome-mahjongg-1 \
          hexadeck \
          kintengu \
          matrix \
          mughal-ganjifa \
          oxymoron \
          standard \
          tuxedo \
          vienna-2k \

%:
	dh $@

override_dh_auto_install:
	cp -r cardset-* debian/pysolfc-cardsets/usr/share/games/pysolfc
	# the standard set is already in the main package
	for c in $(STANDARD_CARDSETS); do \
	    rm -rf debian/pysolfc-cardsets/usr/share/games/pysolfc/cardset-$$c; \
	done
	rm -rf debian/pysolfc-cardsets/usr/share/games/pysolfc/cardset-konqi-modern/.xvpics
	rm -rf debian/pysolfc-cardsets/usr/share/games/pysolfc/cardset-warwick/.xvpics
	chmod a-x debian/pysolfc-cardsets/usr/share/games/pysolfc/cardset-hannover-hex/COPYRIGHT
	chmod a-x debian/pysolfc-cardsets/usr/share/games/pysolfc/cardset-hannover-court/COPYRIGHT
