summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ae0f6c92fc6d7ad26a076905599d873fe23f559a (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
48
49
50
51
52
53
54
55
56
57
58
# Maintainer: pescepalla < base64 -d <<< cGVzY2VwYWxsYUBwb3N0ZW8ubWUK >

pkgname='ibus-typing-booster-git'
pkgdesc='A completion input method for faster typing, git version.'
pkgver=git
pkgrel=1
url='https://mike-fabian.github.io/ibus-typing-booster/'
arch=('any')
license=('GNU3')
makedepends=('git')

depends=(
		'ibus'
        'm17n-lib'
        'python-dbus'
        'python-gobject'
        'sqlite'
	)
	
optdepends=(
		'python-pyenchant'
	)

provides=("ibus-typing-booster-git")
conflicts=("ibus-typing-booster")
source=("${pkgname}::git+https://github.com/mike-fabian/ibus-typing-booster.git")
sha256sums=('SKIP')

pkgver() {
  cd "${pkgname}"

  git describe --long --tags \
    | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
	cd "${pkgname}"
	./autogen.sh --prefix=/usr --libexecdir=/usr/lib/ibus
	./configure --prefix=/usr --libexecdir=/usr/lib/ibus
	make
}

#check() {
#	cd "${pkgname}"
#	make check
# }

package() {
	cd "${pkgname}"
	#remove local schema if it exists because it may conflict with /usr/share/glib-2.0/schemas/org.freedesktop.ibus.engine.typing-booster.gschema.xml
	SCHEMA="/usr/local/share/glib-2.0/schemas/org.freedesktop.ibus.engine.typing-booster.gschema.xml"
	if [ -f $SCHEMA ]
	then
		rm $SCHEMA
	fi
	#install
	make DESTDIR="$pkgdir/" install
}