desktop/fcitx-qt5/PKGBUILD
2018-01-25 07:14:39 +00:00

27 lines
759 B
Bash

pkgname=fcitx-qt5
pkgver=1.2.2
pkgrel=1
pkgdesc="QT5 IM Module for Fcitx"
arch=('x86_64')
url="https://github.com/fcitx/fcitx-qt5"
license=('GPL')
depends=('fcitx>=4.2.7' ''libxkbcommon'' 'qt5-base')
makedepends=('cmake' 'extra-cmake-modules')
source=(https://github.com/fcitx/fcitx-qt5/archive/${pkgver}.tar.gz)
sha512sums=('5c1fd43d40513cf6f5a691bb9b1a2af9ea14b53cc05322481bc572d9e23a141ead1da99b427de995d4c70e1d08a0fe1a796f6a1e8d58011c7d9a3d1a012173c2')
build() {
cd "$srcdir/${pkgname}-${pkgver}"
[[ -d build ]] && rm -rf build || mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_LIBDIR=lib ..
make
}
package() {
cd "$srcdir/${pkgname}-${pkgver}/build"
make install DESTDIR="${pkgdir}"
}