1 # Contributor: Tran Thai Duong <thaiduong.tran@gmail.com>
5 pkgdesc="X and GTK input method for typing Vietnamese"
7 url="http://sourceforge.net/projects/unikey"
9 depends=(libstdc++5 libx11 gtk2)
10 makedepends=(gcc patch make)
11 install=unikey.install
12 source=("http://downloads.sourceforge.net/unikey/x-unikey-${pkgver}.tar.bz2"
14 "Makefile_unikey-gtk.in.diff"
15 "Makefile_xim.in.diff")
16 md5sums=('9019f3f5eae3df333171c8099f0a2f44'
17 'd7a7a59df7d4e672da6703f6f3ee85c1')
21 cd $startdir/src/x-unikey-$pkgver
22 patch -uN src/ukengine/usrkeymap.cpp ../usrkeymap.cpp.diff || return 1
23 patch -uN src/xim/Makefile.in ../Makefile_xim.in.diff || return 1
24 patch -uN src/unikey-gtk/Makefile.in ../Makefile_unikey-gtk.in.diff || return 1
25 ./configure --with-unikey-gtk --prefix=/usr --sysconfdir=/etc
26 make DESTDIR=$startdir/pkg install || return 1