| 1 |
|
| 2 |
|
| 3 |
export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
| 4 |
export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic |
| 5 |
export DEB_LDFLAGS_MAINT_APPEND = |
| 6 |
|
| 7 |
|
| 8 |
export DEB_CXXFLAGS_MAINT_APPEND = -std=c++17 |
| 9 |
|
| 10 |
DPKG_EXPORT_BUILDFLAGS=1 |
| 11 |
include /usr/share/dpkg/default.mk |
| 12 |
include /usr/share/dpkg/buildflags.mk |
| 13 |
|
| 14 |
|
| 15 |
export NOCONFIGURE=yes |
| 16 |
|
| 17 |
%: |
| 18 |
dh $@ |
| 19 |
|
| 20 |
execute_before_dh_autoreconf: |
| 21 |
./autogen.sh |
| 22 |
|
| 23 |
override_dh_auto_configure: |
| 24 |
dh_auto_configure -- \ |
| 25 |
--with-python=/usr/bin/python3 \ |
| 26 |
--enable-cloud-input-mode \ |
| 27 |
--enable-opencc |
| 28 |
|
| 29 |
execute_after_dh_auto_install: |
| 30 |
|
| 31 |
|
| 32 |
python3 debian/split-engines.py \ |
| 33 |
debian/tmp/usr/share/ibus-libpinyin/default.xml \ |
| 34 |
debian/tmp/usr/share/ibus-libpinyin/engines.d |
| 35 |
|
| 36 |
override_dh_python3-arch: |
| 37 |
dh_python3 -a --package=ibus-libbopomofo-common usr/share/ibus-libpinyin/setup/ |
| 38 |
|
| 39 |
execute_after_dh_python3: |
| 40 |
rm -rfv debian/tmp/usr/share/ibus-libpinyin/setup/__pycache__ debian/ibus-libpinyin-common/usr/share/ibus-libpinyin/setup/__pycache__ |
| 41 |
|