aboutsummaryrefslogtreecommitdiffstats
path: root/community/ibus/APKBUILD
blob: 60fd843d2e32b399baf9b7737c59a560cbdb94d6 (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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=ibus
pkgver=1.5.22
pkgrel=1
pkgdesc="Next Generation Input Bus for Linux"
url="https://github.com/ibus/ibus/wiki"
arch="all !s390x !mips !mips64" # librsvg
license="LGPL-2.1-or-later"
depends="
	dconf hicolor-icon-theme iso-codes dbus py3-gobject3
"
makedepends="
	dconf-dev gtk+-dev gtk+3.0-dev libnotify-dev iso-codes-dev librsvg-dev
	gobject-introspection-dev vala intltool qt5-qtbase
	automake autoconf gnome-common gtk-doc wayland-dev wayland-protocols
	dbus-x11 unicode-character-database xz unicode-emoji cldr-emoji-annotation
"
subpackages="
	$pkgname-dev
	$pkgname-doc
	$pkgname-lang
	$pkgname-emoji
	$pkgname-bash-completion:bashcomp:noarch
	"
source="
	$pkgname-$pkgver.tar.gz::https://github.com/ibus/ibus/archive/$pkgver.tar.gz
	0001-Use-more-portable-call-to-mktemp.patch
"
install="$pkgname.post-install"

prepare() {
	default_prepare
	NOCONFIGURE=1 ./autogen.sh
}

build() {
	./configure \
		--prefix=/usr \
		--libexecdir=/usr/lib/ibus \
		--sysconfdir=/etc \
		--enable-dconf \
		--enable-wayland \
		--disable-memconf \
		--enable-ui \
		--disable-gtk-doc \
		--enable-emoji-dict \
		--with-ucd-dir=/usr/share/unicode/
	make
}

check() {
	./bus/ibus-daemon --version
}

package() {
	make DESTDIR="$pkgdir" install
}

emoji() {
	pkgdesc="$pkgdesc (emojis)"
	depends="$pkgname unicode-emoji cldr-emoji-annotation"

	mkdir -p "$subpkgdir"/usr/share/ibus
	mv "$pkgdir"/usr/share/ibus/dicts "$subpkgdir"/usr/share/ibus
}

bashcomp() {
	depends=""
	pkgdesc="Bash completions for $pkgname"
	install_if="$pkgname=$pkgver-r$pkgrel bash-completion"

	amove usr/share/bash-completion
}

sha512sums="972da51eb5702692f13b4f4cff51b3765890e5a91f936b9fa6b6cafaf00f4d078dc39f14bd00f3883203d295d826647c509024dd197d726d4def8d13d45d71b4  ibus-1.5.22.tar.gz
1e2e62ce52becf75d794c403e8f21bb72e8406aacbdbc5189f62a3b7c54166c40da0032d3f3865f5a23d9d2c782f974b7bcc9ba5ce437d9eb435dd3db3ff0b06  0001-Use-more-portable-call-to-mktemp.patch"