summaryrefslogtreecommitdiff
path: root/extra/uim/PKGBUILD
blob: a7e4978d4d3b3c992615a43c0867872198cef249 (plain)
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
# $Id: PKGBUILD 109572 2011-02-10 20:32:59Z bisson $
# Maintainer: damir <damir@archlinux.org>

pkgname=uim
pkgver=1.6.1
pkgrel=2
pkgdesc='Multilingual input method library'
arch=('i686' 'x86_64' 'mips64el')
url='http://code.google.com/p/uim/'
license=('custom')
depends=('gtk2' 'libxft' 'libedit' 'anthy' 'm17n-lib')
makedepends=('intltool' 'gettext' 'gnome-panel')
optdepends=('gnome-panel: gnome applet indicator')
options=('!libtool')
source=("http://uim.googlecode.com/files/${pkgname}-${pkgver}.tar.bz2"
        'home.patch')
sha1sums=('412bb2df6041185084e2f64fb73357389bf992b5'
          'dbcf90f3ea246c5723d715e0935072baa9364cd2')

install=install

build() {
	cd "${srcdir}/${pkgname}-${pkgver}"

	# UIM's Makefile needs to write in $HOME
	patch -p0 < ../home.patch; export HOME="`pwd`"

	./configure --prefix=/usr --libexecdir=/usr/lib/uim \
		--with-anthy-utf8 
	make
}

package() {
	cd "${srcdir}/${pkgname}-${pkgver}"
	make DESTDIR="${pkgdir}" install
	install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
}