summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 455cab50d198b48869538dff6f07946a96c059a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Maintainer: Antonio Rojas <arojas@archlinux.org>

pkgname=maliit-framework
pkgver=2.3.0
pkgrel=3
pkgdesc='Core libraries of Maliit and server'
arch=(x86_64)
url='https://maliit.github.io/'
license=(LGPL-2.1-only)
depends=(gcc-libs
         glib2
         glibc
         libxcb
         qt5-base
         qt5-declarative
         systemd-libs
         wayland)
makedepends=(cmake
             git
             glib2-devel
             gtk3
             qt5-wayland 
             wayland-protocols)
optdepends=('qt5-wayland: wayland-shell integration')
source=(git+https://github.com/maliit/framework#tag=$pkgver)
sha256sums=('08f2a12d36fd1e0c4f838ae276f2dee8a31339f3ffa5d9a844bda8f82dc593e5')

prepare() {
  cd framework
  git cherry-pick -n c787e02f7354f5310b0706b2e8eaee6f3617d9af # Fix stack smashing
}

build() {
  cmake -B build -S framework \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -Denable-tests=OFF \
    -Denable-docs=OFF \
    -Denable-dbus-activation=ON \
    -DQT5_PLUGINS_INSTALL_DIR=lib/qt/plugins \
    -DQT5_MKSPECS_INSTALL_DIR=lib/qt/mkspecs
  cmake --build build
}

package() {
  DESTDIR="$pkgdir" cmake --install build
}