summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO21
-rw-r--r--PKGBUILD32
-rw-r--r--ibus-cangjie.install11
3 files changed, 64 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 000000000000..20a51c8a114e
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,21 @@
+pkgbase = ibus-cangjie
+ pkgdesc = This is an IBus engine for users of the Cangjie and Quick input methods.
+ pkgver = 2.4
+ pkgrel = 1
+ url = http://cangjians.github.io/projects/ibus-cangjie/
+ install = ibus-cangjie.install
+ arch = x86_64
+ arch = i686
+ license = GPL3
+ makedepends = intltool
+ makedepends = dconf
+ depends = ibus>=1.4.1
+ depends = python-pycangjie>=1.0
+ depends = python>=3.2
+ depends = python-gobject
+ replaces = ibus-cangjie-git
+ source = https://github.com/Cangjians/ibus-cangjie/releases/download/v2.4/ibus-cangjie-2.4.tar.xz
+ sha512sums = cef9562fc4a5f3b78881c09b43e502f02322148e501022d3f80989caef4ca98ae26903e9a3dcc422feeba7712a8321c731ba229429e52fe919db5144aa0ead47
+
+pkgname = ibus-cangjie
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..b32b5677e847
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,32 @@
+# Maintainer: Antony Ho <ntonyworkshop@gmail.com>
+pkgname=ibus-cangjie
+pkgver=2.4
+pkgrel=1
+pkgdesc="This is an IBus engine for users of the Cangjie and Quick input methods."
+arch=('x86_64' 'i686')
+url="http://cangjians.github.io/projects/ibus-cangjie/"
+license=('GPL3')
+depends=('ibus>=1.4.1' 'python-pycangjie>=1.0' 'python>=3.2' 'python-gobject')
+conflicts=()
+makedepends=('intltool' 'dconf')
+replaces=('ibus-cangjie-git')
+install='ibus-cangjie.install'
+sha512sums=('cef9562fc4a5f3b78881c09b43e502f02322148e501022d3f80989caef4ca98ae26903e9a3dcc422feeba7712a8321c731ba229429e52fe919db5144aa0ead47')
+source=("https://github.com/Cangjians/$pkgname/releases/download/v$pkgver/$pkgname-$pkgver.tar.xz")
+
+
+check () {
+ cd "$srcdir/$pkgname-$pkgver"
+ make check
+}
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+ ./configure --prefix=/usr --disable-schemas-compile
+ make
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+ make GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 DESTDIR="$pkgdir/" install
+}
diff --git a/ibus-cangjie.install b/ibus-cangjie.install
new file mode 100644
index 000000000000..d33a1b26104f
--- /dev/null
+++ b/ibus-cangjie.install
@@ -0,0 +1,11 @@
+post_install() {
+ glib-compile-schemas /usr/share/glib-2.0/schemas
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+post_remove() {
+ post_install $1
+}