blob: 8b1f14897bf7689e787f0f01b1325c747b84f2f5 (
plain)
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
28
29
30
31
32
33
34
35
|
#!/usr/bin/make -f
export BUILDER=./Setup
# ^ see below
%:
dh $@
override_dh_auto_test:
./keysafe --test
# upstream's install-files target is not sufficient for our split into
# three binary packages, so disable it here and use dh_* tools
override_dh_auto_install:
# GHC cannot produce debugging symbols
override_dh_strip:
dh_strip --no-automatic-dbgsym
# ensure service name is 'keysafe' not 'keysafe-server'. This is so
# we are consistent with other distros despite our package split (see
# INSTALL)
override_dh_installinit:
dh_installinit --name=keysafe
# use Setup.hs directly, not cabal, because cabal likes to write to
# $HOME and can complain about needing a sandbox (this technique
# originally from Joey Hess's hothasktags rules file)
override_dh_auto_configure:
ghc --make Setup
./Setup configure
override_dh_auto_clean:
if [ -x Setup ]; then ./Setup clean; fi
rm -f Setup Setup.o Setup.hi keysafe
rm -rf dist .stack-work
|