#!/usr/bin/make -f

# due to xenial, compat is set to level 9, so dh-autoreconf needs
# to be enabled explicitly (and a Build-Depend in d/control)
%:
	dh $@ --with autoreconf

override_dh_auto_install:
	make installdeb DESTDIR=debian/ibus-avro
	rm -r debian/ibus-avro/usr/lib

override_dh_fixperms:
	dh_fixperms
	chmod +x debian/ibus-avro/usr/share/ibus-avro/main-gjs.js
