desktop/fcitx-qt5/PKGBUILD
2014-06-05 08:52:57 +00:00

34 lines
814 B
Bash

# Maintainer: Weng Xuetian <wengxt@gmail.com>
pkgname=fcitx-qt5
pkgver=0.1.2
pkgrel=1
pkgdesc="QT5 IM Module for Fcitx"
arch=('x86_64')
url="https://fcitx-im.org/wiki/Fcitx"
license=('GPL')
depends=('fcitx>=4.2.7' 'qt5-base')
makedepends=('cmake')
source=("http://download.fcitx-im.org/${pkgname}/${pkgname}-${pkgver}.tar.xz")
build() {
cd "$srcdir/${pkgname}-${pkgver}"
[[ -d build ]] && rm -rf build || mkdir build
cd build
export Qt5Core_DIR=/usr/lib/qt5
export Qt5Gui_DIR=/usr/lib/qt5
export Qt5DBus_DIR=/usr/lib/qt5
export Qt5Widgets_DIR=/usr/lib/qt5
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_LIBDIR=lib ..
make
}
package() {
cd "$srcdir/${pkgname}-${pkgver}/build"
make install DESTDIR="${pkgdir}"
}
md5sums=('d198b3a62bbbf15ecd8b80e29a5e44ec')