Walter Lapchynski 2c1ce150f7 Explicitly enable encryption (thanks marneu!) & remove unnecessary postinst.
Summary:
When I was putting together the packaging, I used @agaida's brilliant idea to explicitly express the configuration options in debian/rules. Unfortunately, I neglected to notice the fact that his packaging had turned off encryption support, so I turned it back on.

I also got rid of the kind of pointless postinst that was in there, as vorlon had pointed out.

Test Plan: Do some encryption :)

Reviewers: tsimonq2

Reviewed By: tsimonq2

Subscribers: agaida

Differential Revision: https://phab.lubuntu.me/D34
2018-10-10 20:27:43 -05:00

34 lines
779 B
Makefile
Executable File

#!/usr/bin/make -f
# 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
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=ON \
-DWITH_ABOOKADDRESSBOOK_PLUGIN=ON \
-DWITH_CLEARTEXT_PLUGIN=ON \
-DWITH_QTKEYCHAIN_PLUGIN=ON \
-DWITH_CRYPTO_MESSAGES=ON
override_dh_auto_test:
dh_auto_test || return 0