diff options
Diffstat (limited to 'community/ibus-chewing/PKGBUILD')
-rw-r--r-- | community/ibus-chewing/PKGBUILD | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/community/ibus-chewing/PKGBUILD b/community/ibus-chewing/PKGBUILD index 00d56f991..c677bd4ae 100644 --- a/community/ibus-chewing/PKGBUILD +++ b/community/ibus-chewing/PKGBUILD @@ -1,3 +1,4 @@ +# $Id: PKGBUILD 56294 2011-10-05 06:10:32Z ebelanger $ # Maintainer: Thomas Dziedzic < gostrc at gmail > # Contributor: Rainy <rainylau(at)gmail(dot)com> # Contributor: Lee.MaRS <leemars@gmail.com> @@ -5,35 +6,33 @@ pkgname=ibus-chewing pkgver=1.3.9.2 -pkgrel=3 +pkgrel=5 pkgdesc='Chinese Chewing Engine for IBus Framework' arch=('i686' 'x86_64' 'mips64el') license=('GPL') url='http://ibus.googlecode.com' depends=('ibus' 'libchewing' 'libxtst' 'gconf') makedepends=('swig' 'cmake' 'gob2') -install="${pkgname}.install" -source=("http://ibus.googlecode.com/files/${pkgname}-${pkgver}-Source.tar.gz") -md5sums=('8d177d67647944f5d1f9cca0654eaccb') +install=ibus-chewing.install +source=(http://ibus.googlecode.com/files/${pkgname}-${pkgver}-Source.tar.gz + ibus-chewing-696864-abrt-ibus-1.4.patch) +md5sums=('8d177d67647944f5d1f9cca0654eaccb' + '4bc83c143243a4fc5aa6a6e6fb0a3aa1') build() { - cd ${pkgname}-${pkgver}-Source - + cd "${srcdir}/${pkgname}-${pkgver}-Source" + patch -p1 -i "${srcdir}/ibus-chewing-696864-abrt-ibus-1.4.patch" cmake \ -DCMAKE_INSTALL_PREFIX=/usr \ -DSYSCONF_INSTALL_DIR=/usr/share \ + -DLIBEXEC_DIR=/usr/lib/ibus \ . make } package() { - cd ${pkgname}-${pkgver}-Source - - make DESTDIR=${pkgdir} install + cd "${srcdir}/${pkgname}-${pkgver}-Source" - # check up on http://code.google.com/p/ibus/issues/detail?id=1172 to fix nonstandard path - install -d ${pkgdir}/usr/lib/ibus - mv ${pkgdir}/usr/libexec/ibus-engine-chewing ${pkgdir}/usr/lib/ibus/ibus-engine-chewing - sed -i 's#/usr/libexec/ibus-engine-chewing#/usr/lib/ibus/ibus-engine-chewing#' ${pkgdir}/usr/share/ibus/component/chewing.xml + make DESTDIR="${pkgdir}" install } |