mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-12 20:05:34 +00:00
On local builds we shouldn't upload errors to Sentry. The `build-utils.sh` script sets the `UPLOAD_SENTRY` environment variable for that purpose. Also, Sentry doesn't like having an empty string as pkgversion (which should no longer happen with the rest of this change, but...)
22 lines
632 B
Makefile
Executable file
22 lines
632 B
Makefile
Executable file
#!/usr/bin/make -f
|
|
|
|
include /usr/share/dpkg/pkg-info.mk
|
|
|
|
#export DH_VERBOSE=1
|
|
export PYBUILD_NAME=keyman-config
|
|
export PYBUILD_INSTALL_ARGS=--install-scripts=/usr/share/keyman-config/
|
|
|
|
%:
|
|
dh $@ --with python3 --buildsystem=pybuild --with bash-completion
|
|
|
|
override_dh_auto_build:
|
|
make man
|
|
sed -i -e "s/^__pkgversion__ = \"[^\"]*\"/__pkgversion__ = \"$(DEB_VERSION)\"/g" keyman_config/version.py && \
|
|
make compile-po
|
|
dh_auto_build $@
|
|
|
|
override_dh_auto_install:
|
|
install -d $(CURDIR)/debian/keyman/usr/share/
|
|
cp -r locale/ $(CURDIR)/debian/keyman/usr/share/
|
|
rm $(CURDIR)/debian/keyman/usr/share/locale/*.po*
|
|
dh_auto_install $@
|