From d723bcf5c76b5018b4d7ee8da94e9b14a33360ed Mon Sep 17 00:00:00 2001 From: Nathan Bonnemains Date: Mon, 22 Apr 2019 18:11:45 +0200 Subject: [PATCH] Add debian rules --- debian/rules | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/debian/rules b/debian/rules index e50e7cd..e11fef4 100755 --- a/debian/rules +++ b/debian/rules @@ -10,5 +10,20 @@ #export DH_VERBOSE=1 %: - dh $@ + dh $@ +override_dh_auto_clean: + rm -rf debian/build + +override_dh_auto_configure: + mkdir -p debian/build + cd debian/build && meson --prefix=/usr ../.. + +override_dh_auto_build: + cd debian/build && ninja -v + +override_dh_auto_test: + cd debian/build && ninja test + +override_dh_auto_install: + cd debian/build && DESTDIR=${CURDIR}/debian/com.github.artemanufrij.webpin ninja install \ No newline at end of file