From 7a65a910b77ad191d69881098c47f9b0c852d92e Mon Sep 17 00:00:00 2001 From: root Date: Tue, 13 Aug 2013 01:33:19 -0700 Subject: Tue Aug 13 01:31:08 PDT 2013 --- community/ibus-chewing/PKGBUILD | 33 +++++++++++++++++++++++++++++ community/ibus-chewing/ibus-chewing.install | 17 +++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 community/ibus-chewing/PKGBUILD create mode 100644 community/ibus-chewing/ibus-chewing.install (limited to 'community/ibus-chewing') diff --git a/community/ibus-chewing/PKGBUILD b/community/ibus-chewing/PKGBUILD new file mode 100644 index 000000000..fed502367 --- /dev/null +++ b/community/ibus-chewing/PKGBUILD @@ -0,0 +1,33 @@ +# $Id: PKGBUILD 80968 2012-12-08 02:26:09Z fyan $ +# Maintainer: Felix Yan +# Contributor: Thomas Dziedzic < gostrc at gmail > +# Contributor: Rainy +# Contributor: Lee.MaRS +# Contributor: Hiroshi Yui + +pkgname=ibus-chewing +pkgver=1.4.3 +pkgrel=2 +pkgdesc='Chinese Chewing Engine for IBus Framework' +arch=('i686' 'x86_64') +license=('GPL') +url='http://ibus.googlecode.com' +depends=('ibus' 'libchewing' 'libxtst' 'gconf') +makedepends=('swig' 'cmake' 'gob2') +options=('!makeflags') +install=ibus-chewing.install +source=("http://ibus.googlecode.com/files/${pkgname}-${pkgver}-Source.tar.gz") + +build() { + cd "${srcdir}/${pkgname}-${pkgver}-Source" + cmake . -DCMAKE_INSTALL_PREFIX=/usr \ + -DSYSCONF_INSTALL_DIR=/usr/share \ + -DLIBEXEC_DIR=/usr/lib/ibus + make +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}-Source" + make DESTDIR="${pkgdir}" install +} +md5sums=('20b1d553ba14cecabcf7418e91da353b') diff --git a/community/ibus-chewing/ibus-chewing.install b/community/ibus-chewing/ibus-chewing.install new file mode 100644 index 000000000..0cfc09857 --- /dev/null +++ b/community/ibus-chewing/ibus-chewing.install @@ -0,0 +1,17 @@ +pkgname=ibus-chewing + +post_install() { + usr/sbin/gconfpkg --install ${pkgname} +} + +pre_upgrade() { + pre_remove $1 +} + +post_upgrade() { + post_install $1 +} + +pre_remove() { + usr/sbin/gconfpkg --uninstall ${pkgname} +} -- cgit v1.2.3-54-g00ecf