[arch-commits] Commit in ibus/repos (3 files)

Evangelos Foutras foutrelis at archlinux.org
Mon Nov 9 17:23:52 UTC 2020


    Date: Monday, November 9, 2020 @ 17:23:51
  Author: foutrelis
Revision: 399866

archrelease: copy trunk to staging-x86_64

Added:
  ibus/repos/staging-x86_64/
  ibus/repos/staging-x86_64/PKGBUILD
    (from rev 399865, ibus/trunk/PKGBUILD)
  ibus/repos/staging-x86_64/ibus.install
    (from rev 399865, ibus/trunk/ibus.install)

--------------+
 PKGBUILD     |   70 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 ibus.install |   16 +++++++++++++
 2 files changed, 86 insertions(+)

Copied: ibus/repos/staging-x86_64/PKGBUILD (from rev 399865, ibus/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2020-11-09 17:23:51 UTC (rev 399866)
@@ -0,0 +1,70 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=ibus
+pkgname=(ibus libibus)
+pkgver=1.5.23+1+gdd4cc5b0
+pkgrel=2
+pkgdesc="Next Generation Input Bus for Linux"
+arch=('x86_64')
+url="https://github.com/ibus/ibus/wiki"
+license=('LGPL')
+depends=('dconf' 'gtk2' 'gtk3' 'hicolor-icon-theme' 'libnotify' 'python-dbus' 'python-gobject'
+         'iso-codes' 'python2-gobject2' 'python2-dbus' 'python2-gobject' 'librsvg')
+makedepends=('gobject-introspection' 'vala' 'intltool' 'gnome-common' 'gtk-doc' 'qt5-base'
+             'cldr-emoji-annotation' 'unicode-character-database' 'unicode-emoji' 'git')
+options=('!emptydirs')
+_commit=dd4cc5b028c35f9bb8fa9d3bdc8f26bcdfc43d40  # master
+source=("git+https://github.com/ibus/ibus#commit=$_commit")
+sha512sums=('SKIP')
+
+pkgver() {
+  cd ibus
+  git describe --tags | sed 's/-/+/g'
+}
+
+prepare() {
+  cd ibus
+  sed -i 's|$(libibus) $(libibus_emoji_dialog)|$(libibus_emoji_dialog) $(libibus)|' ui/gtk3/Makefile.am
+  NOCONFIGURE=1 ./autogen.sh
+}
+
+build() {
+  cd ibus
+  ./configure \
+    --prefix=/usr \
+    --libexecdir=/usr/lib/ibus \
+    --sysconfdir=/etc \
+    --enable-dconf \
+    --enable-wayland \
+    --enable-gtk-doc \
+    --disable-memconf \
+    --enable-ui \
+    --enable-python-library \
+    --with-python=python3 \
+    --with-ucd-dir=/usr/share/unicode/
+  sed -i 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
+  make
+}
+
+package_ibus() {
+  depends+=("libibus=$pkgver")
+  install=ibus.install
+
+  cd ibus
+  make DESTDIR="$pkgdir" install
+  make -C src DESTDIR="$pkgdir" uninstall
+  make -C bindings DESTDIR="$pkgdir" uninstall
+  rm -r "$pkgdir"/usr/lib/python2.7/site-packages/gi # compiled pyc/pyo files were not cleaned
+  make DESTDIR="$pkgdir" uninstall-pkgconfigDATA
+}
+
+package_libibus() {
+  pkgdesc="IBus support library"
+  depends=(libg{lib,object,io}-2.0.so)
+  provides=('libibus-1.0.so')
+
+  cd ibus
+  make -C src DESTDIR="$pkgdir" install
+  make -C bindings DESTDIR="$pkgdir" install
+  make DESTDIR="$pkgdir" install-pkgconfigDATA
+}

Copied: ibus/repos/staging-x86_64/ibus.install (from rev 399865, ibus/trunk/ibus.install)
===================================================================
--- staging-x86_64/ibus.install	                        (rev 0)
+++ staging-x86_64/ibus.install	2020-11-09 17:23:51 UTC (rev 399866)
@@ -0,0 +1,16 @@
+post_install() {
+  gtk-query-immodules-2.0 --update-cache
+  gtk-query-immodules-3.0 --update-cache
+
+  dconf update
+}
+
+post_upgrade() {
+  post_install
+}
+
+post_remove() {
+  post_install
+
+  rm -f etc/dconf/db/ibus
+}



More information about the arch-commits mailing list