aboutsummaryrefslogtreecommitdiff
path: root/debian/rules
diff options
context:
space:
mode:
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules24
1 files changed, 24 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..dbb685e
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,24 @@
+#!/usr/bin/make -f
+
+DESTDIR=$(CURDIR)/debian/dragon-drag-and-drop
+PREFIX=$(DESTDIR)/usr
+BINDIR=$(PREFIX)/bin
+
+DEFINES=-g
+
+%:
+ dh $@
+
+override_dh_auto_install:
+# The install recipe uses some incorrect values like prefix=~/.local/bin so just ignore it entirely
+ echo DESTDIR=$(DESTDIR)
+ install -m0755 -d $(PREFIX) $(BINDIR)
+# Plus we have to customize the name for Devuan anyway
+ install -m0755 dragon $(BINDIR)/dragon-drag-and-drop
+
+override_dh_auto_build:
+ echo DEFINES=$(DEFINES)
+ dh_auto_build -- DEFINES=$(DEFINES)
+
+override_dh_auto_clean:
+ rm -f $(CURDIR)/dragon
bgstack15