desktop/fcitx/PKGBUILD

74 lines
1.8 KiB
Bash
Raw Normal View History

2011-09-25 02:41:58 +08:00
#
# Apps Packages for Chakra, part of chakra-project.org
#
# Maintainer: Neo Kolokotronis <tetris4@gmail.com>
# Contributor: csslayer <wengxt AT gmail com>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgbase=fcitx
pkgname=('fcitx' 'fcitx-qt' 'fcitx-gtk2' 'fcitx-gtk3')
2012-04-07 20:39:32 +08:00
pkgver=4.2.2
pkgrel=1
pkgdesc="A Flexible Input Method Framework"
2011-09-25 02:41:58 +08:00
arch=("i686" "x86_64")
license=('GPL')
url="http://code.google.com/p/fcitx"
makedepends=('intltool' 'cmake' 'pango' 'qt' 'icu' 'dbus-core' 'wget' 'gtk2' 'gtk3')
2011-09-25 02:41:58 +08:00
conflicts=('fcitx-utf8-svn' 'fcitx-svn' 'fcitx-hg')
source=("http://fcitx.googlecode.com/files/${pkgname}-${pkgver}.tar.xz")
2012-04-07 20:39:32 +08:00
md5sums=('29187c7b809fb546aca08c79943737ba')
2011-09-25 02:41:58 +08:00
build() {
cd $srcdir/
msg "Creating make environment..."
mkdir -p $srcdir/build
msg "Starting make..."
cd $srcdir/build
cmake ../${pkgname}-${pkgver} -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release \
-DENABLE_QT_IM_MODULE=On \
-DENABLE_GTK2_IM_MODULE=On \
-DENABLE_GTK3_IM_MODULE=On \
2011-09-25 02:41:58 +08:00
-DENABLE_OPENCC=Off
make
}
package_fcitx(){
depends=('pango' 'dbus-core')
cd $srcdir/build
make DESTDIR=$pkgdir install
rm -rf $pkgdir/usr/lib/qt/
rm -rf $pkgdir/usr/lib/gtk-2.0/
rm -rf $pkgdir/usr/lib/gtk-3.0/
2011-09-25 02:41:58 +08:00
}
package_fcitx-qt()
{
pkgdesc='QT IM Module for fcitx'
depends=('qt' 'icu' 'fcitx')
cd $srcdir/build/src/frontend/qt
make DESTDIR=$pkgdir install
2012-02-23 12:09:30 +08:00
}
package_fcitx-gtk2()
{
pkgdesc='GTK2 IM Module for fcitx'
depends=('gtk2' 'icu' 'fcitx')
2012-02-25 22:48:56 +08:00
install=fcitx-gtk2.install
cd $srcdir/build/src/frontend/gtk2
make DESTDIR=$pkgdir install
}
package_fcitx-gtk3()
{
pkgdesc='GTK3 IM Module for fcitx'
depends=('gtk3' 'fcitx')
2012-02-25 22:48:56 +08:00
install=fcitx-gtk3.install
cd $srcdir/build/src/frontend/gtk3
make DESTDIR=$pkgdir install
}