spiegel-keyman/common/core/desktop/debian/rules
Eberhard Beilharz 54a62a05d7 feat(linux): Adjust package build for build.sh script
This change makes the necessary adjustments so that the package build
works with the new `build.sh` script. We no longer can rely on the
automatisms of debhelper. This change also adds a install target
to `build.sh`, and copies some files from the Keyman root directory
to the desktop directory because when package building we only
have access to the files in common/core/desktop. Along the same lines
it removes embedding `build-utils.h` from `build.sh`. Instead we set
the version and tier locally.
2021-06-02 13:52:08 +10:00

28 lines
676 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_GNU_TYPE) --libexecdir=lib/$(DEB_TARGET_GNU_TYPE)
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