aboutsummaryrefslogtreecommitdiffstats
path: root/testing/ibus/APKBUILD
blob: 2a771db3bc9e078f1b6073681eb0156449024595 (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
80
81
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=ibus
pkgver=1.5.5
pkgrel=0
pkgdesc="Intelligent Input Bus"
url="http://ibus.googlecode.com"
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"
install=""
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang $pkgname-libs $pkgname-gtk2 $pkgname-gtk3"
source="https://ibus.googlecode.com/files/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
	rm -f "$pkgdir"/usr/lib/*.la \
		"$pkgdir"/usr/lib/gtk-*/*/immodules/im-ibus.la
}

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="59b8d2fbed3ceb14edac130f882ccfd4  ibus-1.5.5.tar.gz"
sha256sums="02ab36af6048399fedbe8d85074b161219b89df5020932df33cf8829764f8aec  ibus-1.5.5.tar.gz"
sha512sums="8249d6ee4918b0e0fe030af736eed2260e1376b2fdaf0d819f289e0bd880a5e3874f1fb3d097fc74b9f359822ce16f4dae52a263aa28c2e2ce7bdf671cb2fea9  ibus-1.5.5.tar.gz"