aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/ibus/APKBUILD
blob: 7a6380533980d3e795db7c793cde9558d581be55 (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
77
78
79
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=ibus
pkgver=1.5.13
pkgrel=0
pkgdesc="Intelligent Input Bus"
url="https://github.com/ibus/ibus/wiki"
arch="all"
license="LGPL"
depends="hicolor-icon-theme"
depends_dev="glib-dev gtk+3.0-dev gtk+2.0-dev gobject-introspection-dev libnotify-dev
	dconf-dev gconf-dev"
makedepends="$depends_dev intltool iso-codes vala iso-codes-dev"
install=""
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang $pkgname-libs $pkgname-gtk2 $pkgname-gtk3"
source="https://github.com/ibus/ibus/releases/download/$pkgver/ibus-$pkgver.tar.gz"

_builddir="$srcdir"/ibus-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		--enable-ui \
		--disable-gconf \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
}

libs() {
	pkgdesc="ibus libraries"
	depends=""
	cd "$_builddir"
	mkdir -p "$subpkgdir"/usr/lib/girepository-1.0
	mv "$pkgdir"/usr/lib/libibus-*.so.* \
		"$subpkgdir"/usr/lib/ || return 1
	mv "$pkgdir"/usr/lib/girepository-1.0/IBus-1.0.typelib \
		"$subpkgdir"/usr/lib/girepository-1.0/ || return 1
}

gtk2() {
	pkgdesc="ibus Gtk 2.0 bindings"
	depends=""
	mkdir -p "$subpkgdir"/usr/lib
	mv "$pkgdir"/usr/lib/gtk-2.0 \
		"$subpkgdir"/usr/lib/ || return 1
}

gtk3() {
	pkgdesc="ibus Gtk 3.0 bindings"
	depends=""
	mkdir -p "$subpkgdir"/usr/lib
	mv "$pkgdir"/usr/lib/gtk-3.0 \
		"$subpkgdir"/usr/lib/ || return 1
}

md5sums="314c5e4fbfa7a52e6bbe4d1fe87c33f4  ibus-1.5.13.tar.gz"
sha256sums="ed73d80542dfdcca190b7958431048cd6830c2ce25c467384630b6a7e957a5f1  ibus-1.5.13.tar.gz"
sha512sums="bffb3cecf984ec6e383a111b4e62506390f083476f59404e2e9b90251e6e06853d7f1dc06194456ab5064b5d375820510be1ab12ebd29b966d6a7f5b8aca07ab  ibus-1.5.13.tar.gz"