summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO52
-rw-r--r--PKGBUILD71
2 files changed, 123 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..ca2549d3218
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,52 @@
+pkgbase = ibus-git
+ pkgdesc = Next Generation Input Bus for Linux
+ pkgver = 1.5.23+12+gef4c5c7e
+ pkgrel = 1
+ url = https://github.com/ibus/ibus/wiki
+ arch = x86_64
+ license = LGPL
+ makedepends = gobject-introspection
+ makedepends = vala
+ makedepends = intltool
+ makedepends = gnome-common
+ makedepends = gtk-doc
+ makedepends = gtk2
+ makedepends = qt5-base
+ makedepends = unicode-cldr
+ makedepends = unicode-character-database
+ makedepends = unicode-emoji
+ makedepends = git
+ depends = dconf
+ depends = gtk3
+ depends = hicolor-icon-theme
+ depends = libnotify
+ depends = python-dbus
+ depends = python-gobject
+ depends = iso-codes
+ depends = librsvg
+ options = !emptydirs
+ source = ibus::git+https://github.com/ibus/ibus
+ sha512sums = SKIP
+
+pkgname = ibus-git
+ depends = dconf
+ depends = gtk3
+ depends = hicolor-icon-theme
+ depends = libnotify
+ depends = python-dbus
+ depends = python-gobject
+ depends = iso-codes
+ depends = librsvg
+ depends = libibus-git=1.5.23+12+gef4c5c7e
+ provides = ibus
+ conflicts = ibus
+
+pkgname = libibus-git
+ pkgdesc = IBus support library
+ depends = libglib-2.0.so
+ depends = libgobject-2.0.so
+ depends = libgio-2.0.so
+ provides = libibus
+ provides = libibus-1.0.so
+ conflicts = libibus
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..a6715ecc82c
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,71 @@
+# Maintainer: Pellegrino Prevete <pellegrinoprevete@gmail.com>
+
+_pkgbase=ibus
+pkgbase=$_pkgbase-git
+pkgname=($pkgbase lib$pkgbase)
+pkgver=1.5.23+12+gef4c5c7e
+pkgrel=1
+pkgdesc="Next Generation Input Bus for Linux"
+arch=('x86_64')
+url="https://github.com/${_pkgbase}/${_pkgbase}/wiki"
+license=('LGPL')
+depends=('dconf' 'gtk3' 'hicolor-icon-theme' 'libnotify' 'python-dbus' 'python-gobject'
+ 'iso-codes' 'librsvg')
+makedepends=('gobject-introspection' 'vala' 'intltool' 'gnome-common' 'gtk-doc' 'gtk2' 'qt5-base'
+ 'unicode-cldr' 'unicode-character-database' 'unicode-emoji' 'git')
+options=('!emptydirs')
+source=("${_pkgbase}::git+https://github.com/${_pkgbase}/${_pkgbase}")
+sha512sums=('SKIP')
+
+pkgver() {
+ cd $_pkgbase
+ git describe --tags | sed 's/-/+/g'
+}
+
+prepare() {
+ cd $_pkgbase
+ sed -i 's|$(libibus) $(libibus_emoji_dialog)|$(libibus_emoji_dialog) $(libibus)|' ui/gtk3/Makefile.am
+ NOCONFIGURE=1 ./autogen.sh
+}
+
+build() {
+ cd $_pkgbase
+ ./configure \
+ --prefix=/usr \
+ --libexecdir=/usr/lib/$_pkgbase \
+ --sysconfdir=/etc \
+ --enable-dconf \
+ --enable-wayland \
+ --enable-gtk-doc \
+ --disable-memconf \
+ --enable-ui \
+ --disable-python2 \
+ --with-python=python3 \
+ --with-ucd-dir=/usr/share/unicode/
+ sed -i 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
+ make
+}
+
+package_ibus-git() {
+ depends+=("lib$pkgbase=$pkgver")
+ conflicts=($_pkgbase)
+ provides=($_pkgbase)
+
+ cd $_pkgbase
+ make DESTDIR="$pkgdir" install
+ make -C src DESTDIR="$pkgdir" uninstall
+ make -C bindings DESTDIR="$pkgdir" uninstall
+ make DESTDIR="$pkgdir" uninstall-pkgconfigDATA
+}
+
+package_libibus-git() {
+ pkgdesc="IBus support library"
+ depends=(libg{lib,object,io}-2.0.so)
+ provides=("lib$_pkgbase" "lib$_pkgbase-1.0.so")
+ conflicts=("lib$_pkgbase")
+
+ cd $_pkgbase
+ make -C src DESTDIR="$pkgdir" install
+ make -C bindings DESTDIR="$pkgdir" install
+ make DESTDIR="$pkgdir" install-pkgconfigDATA
+}