mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-08 01:45:32 +00:00
Debian defines multiple similar environment variables. Libraries are expected in `/usr/lib/i386-linux-gnu`. `DEB_TARGET_MULTIARCH` gives that value, whereas the previous `DEB_TARGET_GNU_TYPE` gives `i686-linux-gnu` which then results in our libraries not being found.
28 lines
678 B
Makefile
Executable file
28 lines
678 B
Makefile
Executable file
#!/usr/bin/make -f
|
|
|
|
export DH_VERBOSE=1
|
|
#export DH_OPTIONS=-v
|
|
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
|
|
export SCRIPTS_DIR = $(shell pwd)/scripts
|
|
|
|
# xenial needs this to be explicit
|
|
export LC_ALL=C.UTF-8
|
|
|
|
%:
|
|
dh $@
|
|
|
|
override_dh_auto_configure:
|
|
./build.sh configure -- --wrap-mode=nodownload --prefix=/usr --sysconfdir=/etc --localstatedir=/var --libdir=lib/$(DEB_TARGET_MULTIARCH) --libexecdir=lib/$(DEB_TARGET_MULTIARCH)
|
|
|
|
override_dh_auto_build:
|
|
./build.sh build
|
|
|
|
override_dh_auto_test:
|
|
./build.sh tests
|
|
|
|
override_dh_auto_install:
|
|
install -d $(shell pwd)/debian/tmp
|
|
DESTDIR=$(shell pwd)/debian/tmp ./build.sh install
|
|
|
|
override_dh_missing:
|
|
dh_missing --fail-missing
|