summaryrefslogtreecommitdiff
path: root/fehqlibs-deb/debian/rules
diff options
context:
space:
mode:
authorJannis M. Hoffmann <jannis@fehcom.de>2024-11-26 18:06:14 +0100
committerJannis M. Hoffmann <jannis@fehcom.de>2024-11-26 18:06:14 +0100
commit94e7ec2e703247f5e41641c95c825919e8a66b4b (patch)
tree6b134d5a9f1afeb00a315a8ffad6e0f69975d09d /fehqlibs-deb/debian/rules
parent5c4b60da46401ff3faf9e3f07d13f694f018cf29 (diff)
convert build script to debian directory for fehqlibs
Diffstat (limited to 'fehqlibs-deb/debian/rules')
-rwxr-xr-xfehqlibs-deb/debian/rules22
1 files changed, 22 insertions, 0 deletions
diff --git a/fehqlibs-deb/debian/rules b/fehqlibs-deb/debian/rules
new file mode 100755
index 0000000..de332cf
--- /dev/null
+++ b/fehqlibs-deb/debian/rules
@@ -0,0 +1,22 @@
+#!/usr/bin/make -f
+export DH_VERBOSE = 1
+
+UPSTREAM_VERSION := $(shell dpkg-parsechangelog --show-field Version | cut -d- -f1)
+
+get-orig-source:
+ uscan --download-current-version
+
+%:
+ dh $@ --buildsystem=none
+
+override_dh_auto_clean:
+ -tar -xf ../fehqlibs_$(UPSTREAM_VERSION).orig.tar.gz --strip-components=1
+ $(MAKE) -C src clean
+ sed -i '31,$$d' conf-build
+
+override_dh_auto_configure:
+ echo CFLAGS=\"-Iinclude $(CFLAGS)\" >>conf-build
+ $(MAKE) -C src check
+
+override_dh_auto_build:
+ LDFLAGS= $(MAKE) -C src default