updated on Sun Jan 15 08:01:04 UTC 2012
[aur-mirror.git] / x-unikey / PKGBUILD
blob93b7943b50fcf567e43f6a28e69647c174c7600b
1 # Contributor: Tran Thai Duong <thaiduong.tran@gmail.com>
2 pkgname="x-unikey"
3 pkgver=1.0.4
4 pkgrel=1
5 pkgdesc="X and GTK input method for typing Vietnamese"
6 arch=(i686 x86_64)
7 url="http://sourceforge.net/projects/unikey"
8 license=(GPL)
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"
13         "usrkeymap.cpp.diff"
14         "Makefile_unikey-gtk.in.diff"
15         "Makefile_xim.in.diff")
16 md5sums=('9019f3f5eae3df333171c8099f0a2f44'
17          'd7a7a59df7d4e672da6703f6f3ee85c1')
19 build()
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