blob: 49abbf8c858851bb09d8fcdf32fe268758517acc (
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
|
# Contributor: Alex Yam <alex@alexyam.com>
# Maintainer: Celeste <cielesti@protonmail.com>
pkgname=xcb-imdkit
pkgver=1.0.6
pkgrel=1
pkgdesc="X input method support for XCB"
url="https://github.com/fcitx/xcb-imdkit"
arch="all"
license="LGPL-2.1-only"
makedepends="
cmake
extra-cmake-modules
samurai
uthash-dev
xcb-util-keysyms-dev
"
subpackages="$pkgname-dev"
source="https://github.com/fcitx/xcb-imdkit/archive/$pkgver/xcb-imdkit-$pkgver.tar.gz"
build() {
CFLAGS="$CFLAGS -flto=auto" \
cmake -B build -G Ninja -Wno-dev \
-DCMAKE_BUILD_TYPE=MinSizeRel \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DUSE_SYSTEM_UTHASH=ON
cmake --build build
}
check() {
ctest -VV --test-dir build --output-on-failure
}
package() {
DESTDIR="$pkgdir" cmake --build build --target install
}
sha512sums="
e503e04f852194f11c80cf6a289832a26be519c3f2546b447955d8eef70062343efe0b65d85684a76a32c2166e129a7ff1e8015e1b08c3b5f540bc0ec38a1a2b xcb-imdkit-1.0.6.tar.gz
"
|