#!/usr/bin/make -f
  
%:
	dh --with quilt $@

override_dh_auto_install:
	# Only install these files when building arch-all packages
ifneq (,$(findstring freeplayer, $(shell dh_listpackages)))
	: # Install binary without suffix
	install -m 755 \
		bin/fbx-playlist.pl \
		debian/freeplayer/usr/bin/fbx-playlist-cmd
	install -m 755 \
		bin/vlc-fbx.sh \
		debian/freeplayer/usr/bin/vlc-fbx
	: # and patch it as install.sh
	sed s^%HTTP_PATH%^/usr/share/freeplayer/http-fbx/^ \
		-i debian/freeplayer/usr/bin/vlc-fbx
endif

override_dh_auto_clean:
	$(RM) -rf fbx-playlist-1.1

override_dh_auto_test:
