aboutsummaryrefslogtreecommitdiffstats
path: root/testing/ibus
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2014-02-05 23:15:35 +0000
committerCarlo Landmeter <clandmeter@gmail.com>2014-02-05 23:15:35 +0000
commitec05c2b621825f897ed6c465f4624be4bc4512c4 (patch)
tree4281f648e84bde554185b5b3806d9814320f55f5 /testing/ibus
parentefbacb03d28c47108ff257b4b83bfc3c974c59fe (diff)
downloadaports-ec05c2b621825f897ed6c465f4624be4bc4512c4.tar.bz2
aports-ec05c2b621825f897ed6c465f4624be4bc4512c4.tar.xz
testing/ibus: new aport
Diffstat (limited to 'testing/ibus')
-rw-r--r--testing/ibus/APKBUILD81
1 files changed, 81 insertions, 0 deletions
diff --git a/testing/ibus/APKBUILD b/testing/ibus/APKBUILD
new file mode 100644
index 0000000000..2a771db3bc
--- /dev/null
+++ b/testing/ibus/APKBUILD
@@ -0,0 +1,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"