File debian.rules of Package doublecmd-qt6

#!/usr/bin/make -f

# Set temporary HOME for lazarus primary config directory
export HOME=$(CURDIR)/tmphome

%:
	dh $@

override_dh_install:
	# Build Qt6 version
	./build.sh release qt6
	./install/linux/install.sh --install-prefix=$(CURDIR)/debian/doublecmd-qt6

	dh_install

override_dh_strip:
	# Strip plugins because dh_strip cannot handle non-standard extensions (bug #35733)
	find $(CURDIR)/debian/doublecmd-*/usr/lib/doublecmd/plugins/ -name '*.w?x' -o -name '*.dsx' | \
		xargs strip --remove-section=.comment --strip-unneeded ;
	dh_strip

override_dh_clean:
	./clean.sh

	# Clean up temporary HOME
	rm -rf $(CURDIR)/tmphome
	dh_clean

openSUSE Build Service is sponsored by