spiegel-keyman/linux/keyman-config/debian/rules
Eberhard Beilharz 170d73d027
chore(linux): Fix uploading to Sentry
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...)
2021-08-23 18:34:32 +02:00

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 $@