diff --git a/debian/rules b/debian/rules
index 36f2d5b2bdd82ba84bdbc586cd3a2dfca394a073..9c42b7b3796394323e2d41f50223cf2c91a9ae00 100755 (executable)
--- a/debian/rules
+++ b/debian/rules
CFLAGS += -O2
endif
-config.status: configure
+CHECK = check
+
+ifneq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
+ CHECK =
+endif
+
+include /usr/share/dpatch/dpatch.make
+
+config.status: configure $(DPATCH_STAMPFN)
dh_testdir
./configure --host=$(DEB_HOST_GNU_TYPE) \
--build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr \
--enable-help-screen \
--enable-mouse \
--enable-artist-screen \
+ --enable-chat-screen \
--enable-search-screen \
--enable-song-screen \
--enable-key-screen \
dh_testdir
$(MAKE)
+ test -z '$(CHECK)' || make $(CHECK)
touch build-stamp
-clean:
+clean: unpatch
dh_testdir
dh_testroot
rm -f build-stamp
install-indep:
dh_testdir
dh_testroot
- dh_clean -k
+ dh_prep
dh_installdirs -i
mkdir -p debian/ncmpc-lyrics/usr/lib/ncmpc/lyrics/