diff -pruN 0.5.1-3/debian/changelog 0.5.1-3ubuntu3/debian/changelog
--- 0.5.1-3/debian/changelog	2018-05-29 07:49:34.000000000 +0000
+++ 0.5.1-3ubuntu3/debian/changelog	2022-03-10 12:01:39.000000000 +0000
@@ -1,3 +1,36 @@
+scim-chewing (0.5.1-3ubuntu3) jammy; urgency=medium
+
+  * No-change rebuild against latest gdk-pixbuf
+
+ -- Jeremy Bicha <jeremy.bicha@canonical.com>  Thu, 10 Mar 2022 07:01:39 -0500
+
+scim-chewing (0.5.1-3ubuntu2) focal; urgency=medium
+
+  * No-change rebuild for libgcc-s1 package name change.
+
+ -- Matthias Klose <doko@ubuntu.com>  Wed, 25 Mar 2020 19:16:38 +0100
+
+scim-chewing (0.5.1-3ubuntu1) cosmic; urgency=low
+
+  * Merge from Debian unstable.  Remaining changes:
+    - debian/control:
+      + Build-depend on scim-gtk-immodule.
+      + Recommend im-switch.
+    - debian/rules:
+      + Configure with sysconfdir=/etc, disable-static, and disable-rpath.
+      + Add -f to the rm commands for the *.a and *.la files.
+      + Install the file for im-switch handling.
+    - debian/30_autotools_changes.patch:
+      + Fix up po/Makefile.in.in to use some judicious touch rules to avoid
+        an infinite loop on the build daemons.
+      + Make sure LIBTOOL_EXPORT_OPTIONS is exported.
+    - debian/scim-chewing.postinst: Add scim-chewing as an alternative input
+      method for zh_TW.
+    - debian/scim-chewing.prerm: Remove scim-chewing as an alternative input
+      method for zh_TW.
+
+ -- Gianfranco Costamagna <locutusofborg@debian.org>  Mon, 04 Jun 2018 12:32:13 +0200
+
 scim-chewing (0.5.1-3) unstable; urgency=medium
 
   * Bump Standards-Version to 4.1.4.
@@ -9,6 +42,27 @@ scim-chewing (0.5.1-3) unstable; urgency
 
  -- ChangZhuo Chen (陳昌倬) <czchen@debian.org>  Tue, 29 May 2018 15:49:34 +0800
 
+scim-chewing (0.5.1-2ubuntu1) artful; urgency=low
+
+  * Merge from Debian unstable. Remaining changes (LP: #1711263):
+    - debian/control:
+      + Build-depend on scim-gtk-immodule.
+      + Recommend im-switch.
+    - debian/rules:
+      + Configure with sysconfdir=/etc, disable-static, and disable-rpath.
+      + Add -f to the rm commands for the *.a and *.la files.
+      + Install the file for im-switch handling.
+    - debian/30_autotools_changes.patch:
+      + Fix up po/Makefile.in.in to use some judicious touch rules to avoid
+        an infinite loop on the build daemons.
+      + Make sure LIBTOOL_EXPORT_OPTIONS is exported.
+    - debian/scim-chewing.postinst: Add scim-chewing as an alternative input
+      method for zh_TW.
+    - debian/scim-chewing.prerm: Remove scim-chewing as an alternative input
+      method for zh_TW.
+
+ -- Will DeBerry <willdeberry@gmail.com>  Wed, 16 Aug 2017 23:41:16 -0400
+
 scim-chewing (0.5.1-2) unstable; urgency=medium
 
   * Use automake instead of automake1.11 (Closes: #865201).
@@ -49,6 +103,27 @@ scim-chewing (0.5.0-1) unstable; urgency
 
  -- ChangZhuo Chen (陳昌倬) <czchen@debian.org>  Wed, 11 May 2016 19:32:37 +0800
 
+scim-chewing (0.3.5-2ubuntu1) yakkety; urgency=medium
+
+  * Merge from Debian unstable. Remaining changes:
+    - debian/control:
+      + Build-depend on scim-gtk-immodule.
+      + Recommend im-switch.
+    - debian/rules:
+      + Configure with sysconfdir=/etc, disable-static, and disable-rpath.
+      + Add -f to the rm commands for the *.a and *.la files.
+      + Install the file for im-switch handling.
+    - debian/30_autotools_changes.patch:
+      + Fix up po/Makefile.in.in to use some judicious touch rules to avoid
+        an infinite loop on the build daemons.
+      + Make sure LIBTOOL_EXPORT_OPTIONS is exported.
+    - debian/scim-chewing.postinst: Add scim-chewing as an alternative input
+      method for zh_TW.
+    - debian/scim-chewing.prerm: Remove scim-chewing as an alternative input
+      method for zh_TW.
+
+ -- Logan Rosen <logan@ubuntu.com>  Sat, 07 May 2016 03:20:14 -0400
+
 scim-chewing (0.3.5-2) unstable; urgency=medium
 
   * Update maintainer email.
@@ -58,6 +133,29 @@ scim-chewing (0.3.5-2) unstable; urgency
 
  -- ChangZhuo Chen (陳昌倬) <czchen@debian.org>  Mon, 21 Dec 2015 12:20:49 +0800
 
+scim-chewing (0.3.5-1ubuntu1) wily; urgency=medium
+
+  * Merge from Debian unstable. Remaining changes:
+    - debian/control:
+      + Build-depend on scim-gtk-immodule.
+      + Recommend im-switch.
+    - debian/rules:
+      + Configure with sysconfdir=/etc, disable-static, and disable-rpath.
+      + Add -f to the rm commands for the *.a and *.la files.
+      + Install the file for im-switch handling.
+    - debian/30_autotools_changes.patch:
+      + Fix up po/Makefile.in.in to use some judicious touch rules to avoid
+        an infinite loop on the build daemons.
+      + Make sure LIBTOOL_EXPORT_OPTIONS is exported.
+    - debian/scim-chewing.postinst: Add scim-chewing as an alternative input
+      method for zh_TW.
+    - debian/scim-chewing.prerm: Remove scim-chewing as an alternative input
+      method for zh_TW.
+  * Refresh patch.
+  * Remove autotools-dev usage, as we now use dh-autoreconf.
+
+ -- Logan Rosen <logan@ubuntu.com>  Sun, 16 Aug 2015 22:46:32 -0700
+
 scim-chewing (0.3.5-1) unstable; urgency=medium
 
   [ ChangZhuo Chen (陳昌倬) ]
@@ -78,6 +176,28 @@ scim-chewing (0.3.5-1) unstable; urgency
 
  -- Andrew Lee (李健秋) <ajqlee@debian.org>  Thu, 13 Aug 2015 00:00:54 +0800
 
+scim-chewing (0.3.4-4.1ubuntu1) vivid; urgency=medium
+
+  * Merge from Debian unstable. Remaining changes:
+    - debian/control:
+      + Build-depend on scim-gtk-immodule and autotools-dev.
+      + Recommend im-switch.
+    - debian/rules:
+      + Build with dh_autotools-dev.
+      + Configure with sysconfdir=/etc, disable-static, and disable-rpath.
+      + Add -f to the rm commands for the *.a and *.la files.
+      + Install the file for im-switch handling.
+    - debian/30_autotools_changes.patch:
+      + Fix up po/Makefile.in.in to use some judicious touch rules to avoid
+        an infinite loop on the build daemons.
+      + Make sure LIBTOOL_EXPORT_OPTIONS is exported.
+    - debian/scim-chewing.postinst: Add scim-chewing as an alternative input
+      method for zh_TW.
+    - debian/scim-chewing.prerm: Remove scim-chewing as an alternative input
+      method for zh_TW.
+
+ -- Logan Rosen <logan@ubuntu.com>  Sat, 13 Dec 2014 03:04:24 -0500
+
 scim-chewing (0.3.4-4.1) unstable; urgency=low
 
   * Non-maintainer upload.
@@ -89,6 +209,38 @@ scim-chewing (0.3.4-4.1) unstable; urgen
 
  -- gregor herrmann <gregoa@debian.org>  Sun, 27 Oct 2013 18:22:36 +0100
 
+scim-chewing (0.3.4-4ubuntu4) utopic; urgency=medium
+
+  * Use autotools-dev to update config.{sub,guess} for new arches.
+
+ -- Logan Rosen <logan@ubuntu.com>  Sun, 28 Sep 2014 13:46:05 -0400
+
+scim-chewing (0.3.4-4ubuntu3) saucy; urgency=low
+
+  * Fix checking of higher version of libchewing (LP: #1220224).
+
+ -- Aron Xu <happyaron@ubuntu.com>  Tue, 08 Oct 2013 21:50:24 +0800
+
+scim-chewing (0.3.4-4ubuntu2) quantal; urgency=low
+
+  * Really fix the build dependency on scim-gtk-immodele.
+
+ -- Matthias Klose <doko@ubuntu.com>  Tue, 11 Sep 2012 22:29:33 +0200
+
+scim-chewing (0.3.4-4ubuntu1) quantal; urgency=low
+
+  * Merge with Debian; remaining changes:
+    - add a build-depend on scim-gtk-immodule.
+    - build with disable-static, disable-rpath
+    - debian/30_autotools_changes.patch:
+      + Fix up po/Makefile.in.in to use some judicious touch rules to avoid
+        an infinite loop on the build daemons.
+      + make sure LIBTOOL_EXPORT_OPTIONS is exported.
+    - add scim-chewing as alternative input method for zh_TW in postinst
+    - provide im-switch file and add a dep on im-switch.
+
+ -- Matthias Klose <doko@ubuntu.com>  Tue, 11 Sep 2012 21:56:06 +0200
+
 scim-chewing (0.3.4-4) unstable; urgency=low
 
   * Added multi-arch support and update path in rules file.
@@ -130,6 +282,26 @@ scim-chewing (0.3.4-1) unstable; urgency
 
  -- Andrew Lee (李健秋) <ajqlee@debian.org>  Mon, 03 Oct 2011 14:00:34 +0800
 
+scim-chewing (0.3.3-2ubuntu2) precise; urgency=low
+
+  * Fix FTFBS by requesting chewing 0.3.3 from pkg-config - LP: #935435
+
+ -- Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>  Mon, 05 Mar 2012 17:24:46 +0100
+
+scim-chewing (0.3.3-2ubuntu1) natty; urgency=low
+
+  * Merge from Debian Unstable, remaining changes:
+    - add a build-depend on scim-gtk2-immodule.
+    - build with disable-static, disable-rpath
+    - debian/30_autotools_changes.patch:
+      + Fix up po/Makefile.in.in to use some judicious touch rules to avoid
+        an infinite loop on the build daemons.
+      + make sure LIBTOOL_EXPORT_OPTIONS is exported.
+    - add scim-chewing as alternative input method for zh_TW in postinst
+    - provide im-switch file and add a dep on im-switch.
+
+ -- Bilal Akhtar <bilalakhtar@ubuntu.com>  Thu, 11 Nov 2010 09:20:24 +0300
+
 scim-chewing (0.3.3-2) unstable; urgency=low
 
   * Build-depends on libltdl-dev (Closes:#590417)
@@ -142,6 +314,18 @@ scim-chewing (0.3.3-2) unstable; urgency
 
  -- Andrew Lee (李健秋) <ajqlee@debian.org>  Tue, 27 Jul 2010 14:14:53 -0400
 
+scim-chewing (0.3.3-1ubuntu1) jaunty; urgency=low
+
+  * Merge from debian unstable, remaining changes: LP: #308432
+    - add a build-depend on scim-gtk2-immodule
+    - build with disable-static, disable-rpath
+    - Fix up po/Makefile.in.in to use some judicious touch rules to avoid
+      an infinite loop on the build daemons (thanks to Ming Hua for the help)
+    - add scim-chewing as alternative input method for zh_TW in postinst
+    - provide im-switch file
+
+ -- Bhavani Shankar <right2bhavi@gmail.com>  Tue, 16 Dec 2008 10:17:29 +0530
+
 scim-chewing (0.3.3-1) unstable; urgency=low
 
   * New upstream release
@@ -152,6 +336,18 @@ scim-chewing (0.3.3-1) unstable; urgency
 
  -- Andrew Lee <andrew@linux.org.tw>  Fri, 05 Dec 2008 21:15:14 +0800
 
+scim-chewing (0.3.2-1ubuntu1) jaunty; urgency=low
+
+  * Merge with Debian; remaining changes:
+    - add a build-depend on scim-gtk2-immodule
+    - build with disable-static, disable-rpath
+    - Fix up po/Makefile.in.in to use some judicious touch rules to avoid
+      an infinite loop on the build daemons (thanks to Ming Hua for the help)
+    - add scim-chewing as alternative input method for zh_TW in postinst
+    - provide im-switch file
+
+ -- Matthias Klose <doko@ubuntu.com>  Thu, 27 Nov 2008 15:32:08 +0100
+
 scim-chewing (0.3.2-1) unstable; urgency=low
 
   * New upstream release
@@ -170,6 +366,19 @@ scim-chewing (0.3.2-1) unstable; urgency
 
  -- Andrew Lee <andrew@linux.org.tw>  Wed, 12 Nov 2008 15:42:57 +0800
 
+scim-chewing (0.3.1-3ubuntu1) intrepid; urgency=low
+
+  * Merge from debian unstable, remaining changes:
+    - add a build-depend on scim-gtk2-immodule
+    - maintainer set to ubuntu
+    - build with disable-static, disable-rpath
+    - Fix up po/Makefile.in.in to use some judicious touch rules to avoid
+      an infinite loop on the build daemons (thanks to Ming Hua for the help)
+    - add scim-chewing as alternative input method for zh_TW in postinst
+    - provide im-switch file
+
+ -- Arne Goetje <arne@ubuntu.com>  Thu, 24 Jun 2008 16:00:00 +0800
+
 scim-chewing (0.3.1-3) unstable; urgency=low
 
   * Update README.Debian(Closes:#427629) for Dan Jacobson
@@ -181,6 +390,31 @@ scim-chewing (0.3.1-3) unstable; urgency
 
  -- Andrew Lee <andrew@linux.org.tw>  Wed, 05 Mar 2008 21:41:07 +0800
 
+scim-chewing (0.3.1-2ubuntu3) hardy; urgency=low
+
+  * Rebuild with recent g++ compiler version.
+
+ -- Matthias Klose <doko@ubuntu.com>  Thu, 03 Apr 2008 11:25:04 +0000
+
+scim-chewing (0.3.1-2ubuntu2) gutsy; urgency=low
+
+  * Fix build failures with g++-4.3.
+
+ -- Matthias Klose <doko@ubuntu.com>  Mon, 10 Sep 2007 14:05:05 +0000
+
+scim-chewing (0.3.1-2ubuntu1) gutsy; urgency=low
+
+  * Merge from debian unstable, remaining changes:
+    - add a build-depend on scim-gtk2-immodule
+    - maintainer set to ubuntu
+    - build with disable-static, disable-rpath
+    - Fix up po/Makefile.in.in to use some judicious touch rules to avoid
+      an infinite loop on the build daemons (thanks to Ming Hua for the help)
+    - add scim-chewing as alternative input method for zh_TW in postinst
+    - provide im-switch file
+    
+ -- Michael Vogt <michael.vogt@ubuntu.com>  Fri, 25 May 2007 13:09:32 +0200
+
 scim-chewing (0.3.1-2) unstable; urgency=low
 
   * Dropped ttf-arphic-ukai from Recommends cause it is not suitable font
@@ -194,6 +428,37 @@ scim-chewing (0.3.1-2) unstable; urgency
 
  -- Andrew Lee <andrew@linux.org.tw>  Thu, 23 Aug 2007 22:11:24 +0800
 
+scim-chewing (0.3.1-1ubuntu4) edgy; urgency=low
+
+  * Fix FTBFS: add a build-depend on scim-gtk2-immodule, due to the way
+    we split the libraries up for the sake of GTK-hating derviatives.
+
+ -- Adam Conrad <adconrad@ubuntu.com>  Wed, 18 Oct 2006 18:36:07 +1000
+
+scim-chewing (0.3.1-1ubuntu3) edgy; urgency=low
+
+  * Correct the scim-bridge's dir in
+    debian/im-switch/scim-pinyin, due to the
+    change in gtk2 
+
+ -- Hou ZhengPeng <zhengpeng.hou@gmail.com>  Wed, 16 Aug 2006 08:31:01 +0800
+
+scim-chewing (0.3.1-1ubuntu2) edgy; urgency=low
+
+  * Improve the conffile of im-switch in 
+    debian/im-switch/scim-chewing.
+  * Use scim-chewing in scim-chewing.postinst and
+    scim-chewing.prerm for zh_TW locale users, 
+    instead of scim-pinyin.
+
+ -- Hou ZhengPeng <zhengpeng.hou@gmail.com>  Tue, 11 Jul 2006 13:47:22 +0800
+
+scim-chewing (0.3.1-1ubuntu1) edgy; urgency=low
+
+  * Merge from debian unstable.
+
+ -- Scott James Remnant <scott@ubuntu.com>  Mon, 10 Jul 2006 16:33:31 +0100
+
 scim-chewing (0.3.1-1) unstable; urgency=low
 
   * New upstream release
@@ -217,6 +482,44 @@ scim-chewing (0.3.0-1) unstable; urgency
 
  -- Andrew Lee <andrew@linux.org.tw>  Tue, 30 May 2006 17:33:52 +0800
 
+scim-chewing (0.2.1-2ubuntu4) dapper; urgency=low
+
+  * check for skim in the im-switch file and sets XIM_PROGRAM=skim if
+    it is installed (fixes the problem that skim is not started currently
+    automatically in kubuntu)
+
+ -- Hou ZhengPeng <zhengpeng.hou@gmail.com>  Wed, 12 Apr 2006 15:29:44 +0800
+
+scim-chewing (0.2.1-2ubuntu3) dapper; urgency=low
+
+  * Fix up po/Makefile.in.in to use some judicious touch rules to avoid
+    an infinite loop on the build daemons (thanks to Ming Hua for the help)
+  * Make scripts/remove-autotool.sh stop cleaning the above file on clean.
+  * Make both these changes directly to the diff.gz since, otherwise, the
+    clean target in debian/rules would delete the file before dpatch ran.
+
+ -- Adam Conrad <adconrad@ubuntu.com>  Thu, 16 Mar 2006 15:57:55 +1100
+
+scim-chewing (0.2.1-2ubuntu2) dapper; urgency=low
+
+  * Add im-switch configure file in debian/im-switch for postinst.
+  * Add im-switch to Recommends.
+  * Use ttf-arphic-uming and ttf-arphic-ukai as recommend chinese fonts .
+
+ -- Abel Cheung <abelcheung@gmail.com>  Wed, 15 Mar 2006 17:42:39 +0000
+
+scim-chewing (0.2.1-2ubuntu1) dapper; urgency=low
+
+  * Add patch for correct the configure.ac for LIBTOOL _EXPORT_OPTIONS 
+  * Add skim as an option instead of scim in the depends
+
+ -- Hou ZhengPeng <zhengpeng.hou@gmail.com>  Tue, 28 Feb 2006 15:53:23 +0800
+
+scim-chewing (0.2.1-2build1) dapper; urgency=low
+
+  * Rebuild due to the libstdc++ allocator ABI transition.
+
+ -- Ming Hua <minghua@rice.edu>  Sat, 17 Dec 2005 17:58:32 -0600
 
 scim-chewing (0.2.1-2) unstable; urgency=low
 
diff -pruN 0.5.1-3/debian/control 0.5.1-3ubuntu3/debian/control
--- 0.5.1-3/debian/control	2018-05-29 07:44:50.000000000 +0000
+++ 0.5.1-3ubuntu3/debian/control	2022-03-10 12:01:39.000000000 +0000
@@ -1,7 +1,8 @@
 Source: scim-chewing
 Priority: optional
 Section: utils
-Maintainer: Debian Input Method Team <debian-input-method@lists.debian.org>
+Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
+XSBC-Original-Maintainer: Debian Input Method Team <debian-input-method@lists.debian.org>
 Uploaders: Andrew Lee (李健秋) <ajqlee@debian.org>,
            ChangZhuo Chen (陳昌倬) <czchen@debian.org>,
 Build-Depends: debhelper (>= 11),
@@ -14,6 +15,7 @@ Build-Depends: debhelper (>= 11),
                libltdl-dev,
                libscim-dev (>= 1.4.6),
                libtool,
+               scim-gtk-immodule
 Build-Conflicts: autoconf2.13, automake1.4
 Standards-Version: 4.1.4
 Homepage: http://chewing.im
@@ -26,6 +28,7 @@ Multi-Arch: same
 Depends: ${misc:Depends},
          ${shlibs:Depends},
          scim
+Recommends: ttf-arphic-uming, im-switch
 Description: Chewing IM engine module for SCIM
  SCIM (Smart Common Input Method) is an input method (IM) platform.
  .
diff -pruN 0.5.1-3/debian/im-switch/scim-chewing 0.5.1-3ubuntu3/debian/im-switch/scim-chewing
--- 0.5.1-3/debian/im-switch/scim-chewing	1970-01-01 00:00:00.000000000 +0000
+++ 0.5.1-3ubuntu3/debian/im-switch/scim-chewing	2017-08-17 03:41:16.000000000 +0000
@@ -0,0 +1,18 @@
+XIM=SCIM
+if [ -e /usr/bin/skim ]; then
+    XIM_PROGRAM=/usr/bin/skim
+else
+    XIM_PROGRAM=/usr/bin/scim
+fi
+XIM_ARGS="-d"
+if [ -e /usr/lib/gtk-2.0/2.10.0/immodules/im-scim-bridge.so ]; then
+    GTK_IM_MODULE=scim-bridge
+else
+    GTK_IM_MODULE=xim
+fi
+if [ -e /usr/lib/qt3/plugins/inputmethods/libqscim.so ]; then
+    QT_IM_MODULE=scim
+else
+    QT_IM_MODULE=xim
+fi
+DEPENDS="scim | skim"
diff -pruN 0.5.1-3/debian/patches/30_autotools_changes.patch 0.5.1-3ubuntu3/debian/patches/30_autotools_changes.patch
--- 0.5.1-3/debian/patches/30_autotools_changes.patch	1970-01-01 00:00:00.000000000 +0000
+++ 0.5.1-3ubuntu3/debian/patches/30_autotools_changes.patch	2017-08-17 03:41:16.000000000 +0000
@@ -0,0 +1,11 @@
+Description: Ubuntu-specific changes on makefiles and configure.ac
+--- a/scripts/remove-autotool.sh
++++ b/scripts/remove-autotool.sh
+@@ -35,7 +35,6 @@
+ 	po/Makevars.template \
+ 	po/remove-potcdate.sin \
+ 	po/stamp-po \
+-	po/Makefile.in.in  \
+ 	po/Rules-quot \
+ 	po/Makevars \
+ 	po/quot.sed           
diff -pruN 0.5.1-3/debian/patches/series 0.5.1-3ubuntu3/debian/patches/series
--- 0.5.1-3/debian/patches/series	1970-01-01 00:00:00.000000000 +0000
+++ 0.5.1-3ubuntu3/debian/patches/series	2017-08-17 03:41:16.000000000 +0000
@@ -0,0 +1 @@
+30_autotools_changes.patch
diff -pruN 0.5.1-3/debian/rules 0.5.1-3ubuntu3/debian/rules
--- 0.5.1-3/debian/rules	2018-05-29 07:43:12.000000000 +0000
+++ 0.5.1-3ubuntu3/debian/rules	2018-05-29 16:35:21.000000000 +0000
@@ -11,11 +11,17 @@ override_dh_autoreconf:
 	dh_autoreconf $(CURDIR)/autogen.sh
 
 override_dh_auto_configure:
-	dh_auto_configure -- --disable-static --disable-rpath
+	dh_auto_configure -- --sysconfdir=/etc --disable-static --disable-rpath
 
 override_dh_auto_install:
 	dh_auto_install
-	rm debian/scim-chewing/usr/lib/*/scim-1.0/*/*/*.la
+	# Clean up unnecessary static libraries for modules
+	rm -f debian/scim-chewing/usr/lib/*/scim-1.0/*/*/*.a
+	rm -f debian/scim-chewing/usr/lib/*/scim-1.0/*/*/*.la
+
+	# install file for im-switch handling
+	install -d $(CURDIR)/debian/scim-chewing/etc/X11/xinit/xinput.d/
+	install -m 644 debian/im-switch/scim-chewing debian/scim-chewing/etc/X11/xinit/xinput.d/
 
 override_dh_auto_test:
         # Disabled: Incompelete in po/
diff -pruN 0.5.1-3/debian/scim-chewing.postinst 0.5.1-3ubuntu3/debian/scim-chewing.postinst
--- 0.5.1-3/debian/scim-chewing.postinst	1970-01-01 00:00:00.000000000 +0000
+++ 0.5.1-3ubuntu3/debian/scim-chewing.postinst	2017-08-17 03:41:16.000000000 +0000
@@ -0,0 +1,9 @@
+#!/bin/sh
+set -e
+
+update-alternatives \
+        --install /etc/X11/xinit/xinput.d/zh_TW xinput-zh_TW \
+        /etc/X11/xinit/xinput.d/scim-chewing 50
+
+#DEBHELPER#
+
diff -pruN 0.5.1-3/debian/scim-chewing.prerm 0.5.1-3ubuntu3/debian/scim-chewing.prerm
--- 0.5.1-3/debian/scim-chewing.prerm	1970-01-01 00:00:00.000000000 +0000
+++ 0.5.1-3ubuntu3/debian/scim-chewing.prerm	2017-08-17 03:41:16.000000000 +0000
@@ -0,0 +1,7 @@
+#!/bin/sh
+set -e
+
+update-alternatives --remove xinput-zh_TW /etc/X11/xinit/xinput.d/scim-chewing
+
+#DEBHELPER#
+
