summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 309ddac1ad0f2e12a3832cbe65e7b300c65da193 (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
38
39
40
41
42
43
44
45
46
47
# Maintainer 2016-2018: Yadav Gowda <yadav . gowda __at__ gmail . com>
# Maintainer 2018-now : Vitrum <wqdxosty1yhj at bk dot ru>

pkgname=ibus-kmfl
pkgver=1.0.8
pkgrel=1
pkgdesc="Keyboard Mapping for Linux (KMFL) input method for IBus"
arch=('i686' 'x86_64')
url="http://kmfl.sourceforge.net/"
license=('GPL')
source=("https://sourceforge.net/projects/kmfl/files/kmfl/ibus-kmfl/ibus-kmfl-$pkgver.tar.gz")
depends=('kmflcomp' 'libkmfl' 'libibus')
noextract=()
options=()
md5sums=('af2357d253b6db9f5d8e9a15d6af6f93')

build() {
	LDFLAGS="${LDFLAGS} -lX11"
	cd "$pkgname-$pkgver"
	./configure --prefix=/usr
	make
}

package() {
	cd "$pkgname-$pkgver"
	make DESTDIR="$pkgdir/" install
}

post_install() {
	echo '-----------------------------------------------------------------------------'
	echo 'INFORMATION: newly installed ibus-kmfl engine does not contain keyboard'
	echo 'layouts which can be obtained from the web-sites:'
	echo ''
	echo '* http://tavultesoft.com/keyman/downloads/keyboards/'
	echo '* https://github.com/keymanapp/keyboards'
	echo ''
	echo 'Uncompiled Keyman-style keyboard files (*.kmn) should be copied into the'
	echo "user's directory ~/.kmfl/ or system-wide /usr/share/kmfl/."
	echo ''
	echo 'After restarting ibus-deamon new layouts will be available in the'
	echo 'subcategory "Other". More information about the file format and layout'
	echo 'description language see on the web-site:'
	echo ''
	echo '* https://help.keyman.com/developer/'
	echo '-----------------------------------------------------------------------------'
}