mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-30 04:07:42 +00:00
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.
28 lines
676 B
Makefile
Executable file
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
|