public
Last active

yong with ibus support.

  • Download Gist
PKGBUILD
Shell
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
pkgname=yong
pkgver=20130111
pkgrel=1
_realver="$pkgver"
pkgdesc="A Chinese input method"
arch=(i686 x86_64)
url="http://yong.uueasy.com/"
license=("freeware")
source=("http://ly50247.googlecode.com/files/yong-lin-${pkgver}.7z")
makedepends=("p7zip")
 
build() {
cd $srcdir/$pkgname
[[ "$CARCH" = "x86_64" ]] && rm gtk-im/* && mv l64/* .
rm -rf l64
mv yong.chm README.txt doc
}
 
package() {
mkdir -p $pkgdir/usr/bin/
mkdir -p $pkgdir/usr/lib/gtk-2.0/2.10.0/immodules/
mkdir -p $pkgdir/usr/lib/gtk-3.0/3.0.0/immodules/
mv $srcdir/yong $pkgdir/usr/lib
cd $pkgdir/usr/bin/
ln -sf ../lib/yong/yong .
ln -sf ../lib/yong/yong-config .
ln -sf ../lib/yong/yong-vim .
cd $pkgdir/usr/lib
ln -sf yong/libl.so .
mv yong/gtk-im/im-yong-gtk2.so $pkgdir/usr/lib/gtk-2.0/2.10.0/immodules/
mv yong/gtk-im/im-yong-gtk3.so $pkgdir/usr/lib/gtk-3.0/3.0.0/immodules/
rmdir yong/gtk-im/
 
IBUS_D=/usr/share/ibus/component
if [ -d $IBUS_D ] ; then
install -d $pkgdir$IBUS_D
sed -i "s%\/usr\/share\/yong%\/usr\/lib\/yong%" $pkgdir/usr/lib/yong/yong.xml
cp $pkgdir/usr/lib/yong/yong.xml $pkgdir$IBUS_D/yong.xml
fi
}
 
# vim:set ts=4 sw=4 et:
sha1sums=('a78e27f231ca9b41684c1f963aadfe2627584cd8')

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.