1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
#!/usr/bin/make -f
ifeq (,$(filter noopt,$(DEB_BUILD_OPTIONS)))
CMAKE_OPTIONS += -DCMAKE_BUILD_TYPE=RelWithDebInfo
else
CMAKE_OPTIONS += -DCMAKE_BUILD_TYPE=Debug
endif
BUILD_DIRECTORY=b/
override_dh_auto_configure:
dh_auto_configure -B${BUILD_DIRECTORY} -- $(CMAKE_OPTIONS)
override_dh_auto_install-arch:
dh_auto_configure -B${BUILD_DIRECTORY} -- $(CMAKE_OPTIONS) -DLOCAL:bool=off
dh_auto_install -B${BUILD_DIRECTORY}
chrpath --delete $(CURDIR)/debian/tmp/usr/bin/cupt
override_dh_auto_install-indep:
dh_auto_install -B${BUILD_DIRECTORY} -i
install -m644 scripts/logrotate $(CURDIR)/debian/libcupt-common/etc/logrotate.d/cupt
override_dh_strip:
dh_strip --dbg-package=cupt-dbg
%:
dh $@ -B${BUILD_DIRECTORY} --parallel --with bash-completion
|