fixed rules like debian

ci/stable
Walter Lapchynski 6 years ago
parent d5e6039cdf
commit e5e794796f

31
debian/rules vendored

@ -1,8 +1,33 @@
#!/usr/bin/make -f
export DH_VERBOSE = 1
# export DH_VERBOSE=1
INST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed -pthread
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export LC_ALL=C.UTF-8
%:
dh $@ --buildsystem=cmake
dh ${@} --buildsystem cmake
override_dh_missing:
dh_missing --fail-missing
override_dh_auto_configure:
dh_auto_configure -- \
-DCMAKE_INSTALL_RPATH="/usr/lib/$(INST_ARCH)/trojita" \
-DWITH_DESKTOP=ON \
-DWITH_DBUS=ON \
-DWITH_RAGEL=ON \
-DWITH_ZLIB=ON \
-DWITH_SHARED_PLUGINS=ON \
-DWITH_TESTS=OFF \
-DWITH_MIMETIC=ON \
-DWITH_GPGMEPP=OFF \
-DWITH_ABOOKADDRESSBOOK_PLUGIN=ON \
-DWITH_CLEARTEXT_PLUGIN=ON \
-DWITH_QTKEYCHAIN_PLUGIN=ON \
-DWITH_CRYPTO_MESSAGES=OFF
override_dh_auto_test:
xvfb-run -a dh_auto_test
dh_auto_test || return 0

Loading…
Cancel
Save