desktop/librime/PKGBUILD
2013-10-03 20:43:50 +00:00

34 lines
869 B
Bash

#
# Apps Packages for Chakra, part of chakra-project.org
#
# Maintainer: Weng Xuetian <wengxt@gmail.com>
pkgname=librime
pkgver=0.9.9
pkgrel=2
pkgdesc="Rime input method engine"
arch=('i686' 'x86_64')
url="http://code.google.com/p/rimeime/"
license=('GPL3')
depends=('boost' 'google-glog' 'kyotocabinet' 'opencc' 'yaml-cpp>=0.5.0')
optdepends=('brise: Rime schema repository')
makedepends=('cmake')
source=("http://rimeime.googlecode.com/files/$pkgname-$pkgver.tar.gz" "librime-0.9.9-fail_gtest.patch")
build() {
cd "${srcdir}/$pkgname"
patch -i ../librime-0.9.9-fail_gtest.patch -p1 || return 1
mkdir -p build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release ..
make
}
package() {
cd "${srcdir}/$pkgname"
make DESTDIR="$pkgdir" install
}
md5sums=('bd705cd3e4c7ab6e47d983b07044769f'
'4f65057e15ae3a60987a01ca260e205d')