desktop/fcitx-qt5/PKGBUILD
2018-05-26 07:14:36 +02:00

27 lines
757 B
Bash

pkgname=fcitx-qt5
pkgver=1.2.3
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=('73bdce2eb9bf1d7795cd4fa7ce2a327ccfe707d8e19f74edc60716185b03dd615a89a1d853f8d8724af0d2b48b4072453e7eac08c1d2dbd74fac127e95507b6e')
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}"
}