desktop/fcitx-libpinyin/PKGBUILD
2016-12-16 02:15:09 +00:00

28 lines
701 B
Bash

pkgname=fcitx-libpinyin
pkgver=0.4.0
pkgrel=1
pkgdesc="Fcitx Wrapper for libpinyin."
arch=('x86_64')
url="https://fcitx-im.org/wiki/Fcitx"
license=('GPL')
depends=('fcitx>=4.2.8' 'libpinyin' 'qt' 'qtwebkit' 'glib2' 'dbus')
makedepends=('cmake' 'intltool' 'wget')
source=("https://download.fcitx-im.org/${pkgname}/${pkgname}-${pkgver}_dict.tar.xz")
sha256sums=('02d5f9b787f124c367abb5862bacd70d47cfb9ff9458ec1227e963fcd3a95d36')
build(){
cd "$srcdir/${pkgname}-${pkgver}"
rm -rf build
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release ..
make
}
package ()
{
cd "$srcdir/${pkgname}-${pkgver}/build"
make DESTDIR=${pkgdir} install
}