#!/usr/bin/make -f
# -*- makefile -*-

BUILDARCH=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
SPOTIFY=$(shell ls *_$(BUILDARCH).deb)
PKGDIR=debian/spotify-client

%:
	dh $@ 

override_dh_auto_build:

override_dh_auto_install:
	dpkg -x $(SPOTIFY) $(PKGDIR)
	install -D $(PKGDIR)/usr/share/spotify/spotify.desktop  $(PKGDIR)/usr/share/applications/spotify.desktop
	install -D $(PKGDIR)/usr/share/spotify/icons/spotify-linux-512.png ${PKGDIR}/usr/share/pixmaps/spotify-client.png
	for size in 22 24 32 48 64 128 256 512; do \
		install -D $(PKGDIR)/usr/share/spotify/icons/spotify-linux-$${size}.png \
		$(PKGDIR)/usr/share/icons/hicolor/$${size}x$${size}/apps/spotify.png; \
	done

override_dh_strip:
