File fix-rules of Package deb2suse

#!/bin/sh

# perl module packages commonly have broken install sections
grep 'Package: .*-perl' debian/control \
	&& sed -i \
		-e 's/$(MAKE) install PREFIX=\(.*\)\/usr/$(MAKE) install DESTDIR=\1 PREFIX=\/usr/' \
		-e '/rmdir --ignore-fail-on-non-empty/s/\/usr\/share\/perl5/\/usr\/lib\/perl5/' \
		debian/rules

# X11 appdefaults are beyond /etc/X11/app-defaults in debian, but
# /usr/share/X11/app-defauls in suse
sed -i \
	-e '/dh_installdirs/s/etc\/X11\/app-defaults/usr\/share\/X11\/app-defaults/' \
	debian/rules

openSUSE Build Service is sponsored by