Commit ca582fc7 authored by fkardame's avatar fkardame 💬
Browse files

Use qmake

parent 7b044894
# Maintainer: Philip Müller <philm@manjaro.org>
# Contributor: Bhushan Shah <bshah@kde.org>
pkgname=maliit-keyboard-git
pkgver=r2048.g36db49b4
pkgrel=2
pkgname=lomiri-keyboard-git
_pkgname=keyboard-component
pkgver=r2086.geaa3d713
pkgrel=1
pkgdesc="Maliit Keyboard"
arch=('aarch64')
url="https://github.com/ubports/keyboard-component"
......@@ -11,33 +12,29 @@ groups=()
depends=('maliit-framework-git' 'qt5-feedback' 'qt5-multimedia'
'hunspell' 'libchewing' 'presage-git' 'libpinyin' 'sqlite')
makedepends=('git' 'cmake')
provides=(maliit-keyboard)
conflicts=(maliit-keyboard maliit-keyboard-git)
install=
source=("git+$url.git")
md5sums=('SKIP')
pkgver() {
cd keyboard
cd $_pkgname
printf "r%s.g%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
mkdir -p build
cd keyboard
cd $_pkgname
}
build() {
cd build
cmake ../keyboard \
-DCMAKE_INSTALL_LIBEXECDIR=lib \
-DCMAKE_INSTALL_PREFIX=/usr \
-DBUILD_TESTING=OFF \
-DLIB_INSTALL_DIR=lib \
-DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
-DCMAKE_BUILD_TYPE=Release
cd ${_pkgname}
qmake CONFIG+=no_docs
make
}
package() {
cd build
make DESTDIR="$pkgdir/" install
cd ${_pkgname}
make INSTALL_ROOT="${pkgdir}/" install
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment