From 9dc557ebd6b305bb4d4146dc77b499f7288fa37c Mon Sep 17 00:00:00 2001 From: "B. Stack" Date: Sat, 16 Sep 2023 19:23:35 -0400 Subject: update packaging for building now --- debian/rules | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'debian/rules') diff --git a/debian/rules b/debian/rules index 01ce32c..aaff96e 100755 --- a/debian/rules +++ b/debian/rules @@ -2,9 +2,10 @@ # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 +export SUBDIR=d2x-rebirth %: - dh $@ --parallel + dh $@ --parallel --sourcedirectory="${SUBDIR}" override_dh_clean: scons --clean @@ -13,7 +14,7 @@ override_dh_clean: override_dh_auto_build: dh_auto_build ## build menu icon - convert d2x-rebirth.xpm -resize 32x32 debian/d2x-rebirth32.xpm + convert "${SUBDIR}"/d2x-rebirth.xpm -resize 32x32 debian/d2x-rebirth32.xpm CFLAGS="$(CFLAGS) $(CPPFLAGS)" LDFLAGS="$(LDFLAGS)" \ scons prefix=/usr verbosebuild=1 --debug=presub @@ -34,7 +35,7 @@ override_dh_auto_install: dh_auto_install --destdir=$(CURDIR)/tmp override_dh_installchangelogs: - dh_installchangelogs CHANGELOG.txt + dh_installchangelogs "${SUBDIR}"/CHANGELOG.txt ## http://wiki.debian.org/onlyjob/get-orig-source PKD = $(abspath $(dir $(MAKEFILE_LIST))) -- cgit