desktop/fcitx/PKGBUILD

71 lines
2.0 KiB
Bash
Raw Normal View History

2013-05-30 01:59:31 +08:00
pkgbase=fcitx
pkgname=('fcitx' 'fcitx-pinyin' 'fcitx-table')
2015-06-11 22:21:06 +08:00
pkgver=4.2.9
2014-10-18 05:33:58 +08:00
pkgrel=1
2015-05-26 17:59:10 +08:00
arch=('x86_64')
2011-09-25 02:41:58 +08:00
license=('GPL')
2014-06-05 16:52:57 +08:00
url="https://fcitx-im.org/wiki/Fcitx"
#giturl="https://github.com/fcitx/"
2015-06-11 22:21:06 +08:00
makedepends=('cmake' 'extra-cmake-modules' 'qt' 'icu' 'wget' 'opencc' 'lua' 'iso-codes' 'enchant' 'libxkbfile' 'libxkbcommon' 'cairo' 'pango' 'mesa' 'python2')
source=("http://download.fcitx-im.org/${pkgname}/${pkgname}-${pkgver}.tar.xz")
2012-08-31 22:50:04 +08:00
categories=('localization')
2011-09-25 02:41:58 +08:00
build() {
msg "Creating make environment..."
2013-04-08 10:22:47 +08:00
mkdir -p build
2011-09-25 02:41:58 +08:00
msg "Starting make..."
2013-04-08 10:22:47 +08:00
cd build
2011-09-25 02:41:58 +08:00
cmake ../${pkgname}-${pkgver} -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release \
2013-11-19 11:19:01 +08:00
-DSYSCONFDIR=/etc \
2011-09-25 02:41:58 +08:00
-DENABLE_QT_IM_MODULE=On \
2013-01-31 06:27:06 +08:00
-DENABLE_GTK2_IM_MODULE=Off \
-DENABLE_GTK3_IM_MODULE=Off \
2012-05-10 18:24:22 +08:00
-DENABLE_OPENCC=On \
2012-06-03 21:52:31 +08:00
-DENABLE_LUA=On \
-DENABLE_GIR=Off
2011-09-25 02:41:58 +08:00
make
}
2013-05-30 01:59:31 +08:00
package_fcitx(){
pkgdesc="A Flexible Input Method Framework"
depends=('pango' 'dbus-core' 'opencc' 'lua' 'iso-codes' 'icu' 'libxkbfile')
install=fcitx.install
2013-04-08 10:22:47 +08:00
cd build
2011-09-25 02:41:58 +08:00
make DESTDIR=$pkgdir install
2013-05-30 01:59:31 +08:00
# remove table
rm ${pkgdir}/usr/lib/fcitx/fcitx-table.so
rm -r ${pkgdir}/usr/share/fcitx/table/
rm ${pkgdir}/usr/share/fcitx/*/fcitx-table.*
rm ${pkgdir}/usr/share/fcitx/configdesc/table.desc
# remove pinyin
rm ${pkgdir}/usr/lib/fcitx/fcitx-pinyin.so
rm -r ${pkgdir}/usr/share/fcitx/pinyin/
rm ${pkgdir}/usr/share/fcitx/*/fcitx-pinyin.*
2014-06-05 16:52:57 +08:00
rm -r ${pkgdir}/usr/include/fcitx/module/pinyin/
2013-05-30 01:59:31 +08:00
rm ${pkgdir}/usr/share/fcitx/inputmethod/{pinyin,shuangpin}.conf
}
2013-05-30 01:59:31 +08:00
package_fcitx-pinyin() {
pkgdesc="Pinyin Support for Fcitx"
depends=('fcitx')
pushd .
cd build/src/im/pinyin
make DESTDIR=$pkgdir install
popd
}
package_fcitx-table() {
pkgdesc="Table Support for Fcitx"
depends=('fcitx' 'fcitx-pinyin')
pushd .
cd build/src/im/table
make DESTDIR=$pkgdir install
popd
}
2015-06-11 22:21:06 +08:00
sha512sums=('f5eea414d57a701546675b19e6fac9b96e96b60cc063b2d66692866ae5969a9b3fada0c8a6da79e019aca939fd28051ccd12406fc43c3f76e6dcced3952374fe')