opensnitch/utils/packaging/ui/deb/debian/rules
Gustavo Iñiguez Goia 9b0cf5a85f
pkgs: fixed locales
We were distributing locales twice, under opensnitch/i18n/ and
opensnitch/i18n/locales/.

This also caused to display an empty language in the Preferences
languages combo box.
2025-05-28 23:54:09 +02:00

26 lines
757 B
Makefile
Executable file

#!/usr/bin/make -f
# This file was automatically generated by stdeb 0.9.0 at
# Thu, 06 Feb 2020 00:20:02 +0100
%:
dh $@ --with python3 --buildsystem=python_distutils
override_dh_auto_clean:
rm -f opensnitch/resources_rc.py
rm -rf opensnitch/i18n/
python3 setup.py clean -a
find . -name \*.pyc -exec rm {} \;
override_dh_auto_build:
python3 setup.py build --force
override_dh_auto_install:
cd i18n; make
pyrcc5 -o opensnitch/resources_rc.py opensnitch/res/resources.qrc
find opensnitch/proto/ -name 'ui_pb2_grpc.py' -exec sed -i 's/^import ui_pb2/from . import ui_pb2/' {} \;
python3 setup.py install --force --root=debian/python3-opensnitch-ui --no-compile -O0 --install-layout=deb
override_dh_python2:
dh_python2 --no-guessing-versions