aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/ibus/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'unmaintained/ibus/APKBUILD')
-rw-r--r--unmaintained/ibus/APKBUILD79
1 files changed, 79 insertions, 0 deletions
diff --git a/unmaintained/ibus/APKBUILD b/unmaintained/ibus/APKBUILD
new file mode 100644
index 0000000000..7a63805339
--- /dev/null
+++ b/unmaintained/ibus/APKBUILD
@@ -0,0 +1,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"