Skip to content

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
yong with ibus support.
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')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.