[med-svn] [libundead] 02/03: Add necessary build rules

Matthias Klumpp mak at moszumanska.debian.org
Thu Mar 2 23:55:43 UTC 2017


This is an automated email from the git hooks/post-receive script.

mak pushed a commit to branch master
in repository libundead.

commit 6e3f3c4b5342ae0f67fa97381a99e44c8a38ec73
Author: Matthias Klumpp <matthias at tenstral.net>
Date:   Fri Mar 3 00:46:09 2017 +0100

    Add necessary build rules
---
 debian/control |  4 ++--
 debian/rules   | 13 ++++++++++---
 2 files changed, 12 insertions(+), 5 deletions(-)

diff --git a/debian/control b/debian/control
index 8c17574..40ccc0a 100644
--- a/debian/control
+++ b/debian/control
@@ -5,14 +5,14 @@ Section: science
 Priority: optional
 Build-Depends: debhelper (>= 10),
                ldc,
-               meson,
+               meson (>= 0.38),
                pkg-config
 Standards-Version: 3.9.8
 Vcs-Browser: https://anonscm.debian.org/cgit/debian-med/libundead.git
 Vcs-Git: https://anonscm.debian.org/git/debian-med/libundead.git
 Homepage: https://github.com/dlang/undeaD
 
-Package: libundead
+Package: libundead-dev
 Architecture: any
 Depends: ${shlibs:Depends},
          ${misc:Depends}
diff --git a/debian/rules b/debian/rules
index 575b0ba..d3fed0b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,13 +1,11 @@
 #!/usr/bin/make -f
-
 # DH_VERBOSE := 1
-export LC_ALL=C.UTF-8
 
 CONFIG_FLAGS := --prefix=/usr \
                 --buildtype=plain
 
 INSTALL_DIR := $(CURDIR)/debian/libundead-dev
-export DFLAGS=-O -g -release
+export DFLAGS=-O -release -g
 
 %:
 	dh $@
@@ -15,3 +13,12 @@ export DFLAGS=-O -g -release
 override_dh_auto_configure:
 	mkdir build
 	(cd build && meson $(CONFIG_FLAGS) ..)
+
+override_dh_auto_build:
+	ninja -Cbuild -v
+
+override_dh_auto_install:
+	DESTDIR=$(INSTALL_DIR) ninja -Cbuild -v install
+
+override_dh_auto_test:
+	ninja -Cbuild -v test

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/libundead.git



More information about the debian-med-commit mailing list