summaryrefslogtreecommitdiff
path: root/veracrypt/debian/rules
diff options
context:
space:
mode:
authorB Stack <bgstack15@gmail.com>2020-05-27 12:50:09 +0000
committerB Stack <bgstack15@gmail.com>2020-05-27 12:50:09 +0000
commit61ccb58a66b70e9260316d37d6df91decdafa4b8 (patch)
tree700b854fe9c5e2e9dd74d7900a7cd8639e6836d4 /veracrypt/debian/rules
parentpm: add pm-fedora to spec (diff)
parentfix typos (diff)
downloadstackrpms-61ccb58a66b70e9260316d37d6df91decdafa4b8.tar.gz
stackrpms-61ccb58a66b70e9260316d37d6df91decdafa4b8.tar.bz2
stackrpms-61ccb58a66b70e9260316d37d6df91decdafa4b8.zip
Merge branch 'veracrypt-bump' into 'master'
Rebase Veracrypt as an overlay of unit193 Closes #22 See merge request bgstack15/stackrpms!159
Diffstat (limited to 'veracrypt/debian/rules')
-rwxr-xr-xveracrypt/debian/rules12
1 files changed, 10 insertions, 2 deletions
diff --git a/veracrypt/debian/rules b/veracrypt/debian/rules
index 5cb3e9e..b02f64e 100755
--- a/veracrypt/debian/rules
+++ b/veracrypt/debian/rules
@@ -4,19 +4,27 @@
#export DH_VERBOSE=1
DPKG_EXPORT_BUILDFLAGS = 1
-include /usr/share/dpkg/buildflags.mk
+include /usr/share/dpkg/default.mk
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
+export TC_EXTRA_CFLAGS = $(CFLAGS) $(CPPFLAGS)
+export TC_EXTRA_CXXFLAGS = $(CXXFLAGS) $(CPPFLAGS)
+export TC_EXTRA_LFLAGS = $(LDFLAGS)
+
%:
dh $@ --sourcedirectory=src
override_dh_auto_build:
- dh_auto_build -- VERBOSE=1 NOSTRIP=1
+ dh_auto_build -- VERBOSE=1 NOSTRIP=1 ARCH=$(DEB_HOST_ARCH)
unset DISPLAY && src/Main/veracrypt --text --help 2>/dev/null | debian/veracrypt_help_to_troff.pl > veracrypt.1
override_dh_clean:
dh_clean veracrypt.1
+override_dh_install:
+ dh_install
+ rm -f debian/veracrypt/usr/share/doc/veracrypt/License.txt debian/veracrypt/usr/bin/veracrypt-uninstall.sh
+
override_dh_installinit:
dh_installinit --no-start -- stop 10 0 1 6 .
bgstack15