#!/usr/bin/make -f

# output verbose build commands
export DH_VERBOSE=1

# allow ./debian/rules binary to be executed without root
export DEB_RULES_REQUIRES_ROOT=no

# enable all build hardening flags
export DEB_BUILD_MAINT_OPTIONS=hardening=+all

%:
	dh $@

override_dh_auto_install-arch:
	dh_auto_install
	cd debian/tmp/usr/lib/$(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) && \
	    mv libFAudio.so libFAudio.so.0.0.0 && \
	    ln -s libFAudio.so.0.0.0 libFAudio.so.0 && \
	    ln -s libFAudio.so.0 libFAudio.so
