commit d00b9f4b8e1d65600e4767f9018012f6f19190aa Author: Armin K Date: Tue Dec 30 20:28:34 2014 +0100 Initial commit for imsettings. diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..dd3e88f28da9 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,30 @@ +# Generated by makepkg 4.2.0 +# Tue Dec 30 19:17:42 UTC 2014 +pkgbase = imsettings + pkgdesc = framework that delivers Input Method settings and applies the changes immediately + pkgver = 1.6.7 + pkgrel = 2 + url = http://tagoh.bitbucket.org/imsettings/ + arch = i686 + arch = x86_64 + license = LGPL2 + makedepends = check + makedepends = gconf + makedepends = gobject-introspection + makedepends = gtk3 + makedepends = xfconf + depends = gtk2 + depends = ibus + depends = libgxim + depends = libnotify + optdepends = gconf: GConf backend + optdepends = ibus-qt: IBus support in Qt4 apps + optdepends = xfconf: Xfce backend + options = !libtool + source = https://bitbucket.org/tagoh/imsettings/downloads/imsettings-1.6.7.tar.bz2 + source = ibus.conf + sha256sums = 0d40099e93eb82bd35c29322df374297ae3286b5879b21f5056c8d4b5b7577dd + sha256sums = 47769b7f6e435fe3c39e5c64c374b7d2311f3e0b43d9ddbcf230b652d25a6464 + +pkgname = imsettings + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..e834266e8f21 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,35 @@ +# Maintainer: Armin K. + +pkgname=imsettings +pkgver=1.6.7 +pkgrel=2 +pkgdesc="framework that delivers Input Method settings and applies the changes immediately" +arch=('i686' 'x86_64') +url="http://tagoh.bitbucket.org/imsettings/" +license=('LGPL2') +depends=('gtk2' 'ibus' 'libgxim' 'libnotify') +makedepends=('check' 'gconf' 'gobject-introspection' 'gtk3' 'xfconf') +optdepends=('gconf: GConf backend' + 'ibus-qt: IBus support in Qt4 apps' + 'xfconf: Xfce backend') +options=('!libtool') +source=("https://bitbucket.org/tagoh/${pkgname}/downloads/${pkgname}-${pkgver}.tar.bz2" + 'ibus.conf') +sha256sums=('0d40099e93eb82bd35c29322df374297ae3286b5879b21f5056c8d4b5b7577dd' + '47769b7f6e435fe3c39e5c64c374b7d2311f3e0b43d9ddbcf230b652d25a6464') + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + + ./configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib/${pkgname} --disable-static + make +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + + make install DESTDIR="${pkgdir}" + + install -Dm644 "${srcdir}/ibus.conf" "${pkgdir}/etc/X11/xinit/xinput.d/ibus.conf" + install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} diff --git a/ibus.conf b/ibus.conf new file mode 100644 index 000000000000..f5459ff7d508 --- /dev/null +++ b/ibus.conf @@ -0,0 +1,16 @@ +XIM=ibus +XIM_PROGRAM="/usr/bin/ibus-daemon" +ICON="ibus" +XIM_ARGS="-r --xim" +PREFERENCE_PROGRAM=/usr/bin/ibus-setup +SHORT_DESC="IBus" +GTK_IM_MODULE=ibus +NOT_RUN=gnome3 + +if test -f /usr/lib/qt4/plugins/inputmethods/libqtim-ibus.so || \ + test -f /usr/lib64/qt4/plugins/inputmethods/libqtim-ibus.so; +then + QT_IM_MODULE=ibus +else + QT_IM_MODULE=xim +fi