| 1 |
package=libxkbcommon |
| 2 |
$(package)_version=1.8.1 |
| 3 |
$(package)_download_path=https://github.com/xkbcommon/libxkbcommon/archive/refs/tags |
| 4 |
$(package)_file_name=xkbcommon-$($(package)_version).tar.gz |
| 5 |
$(package)_sha256_hash=c65c668810db305c4454ba26a10b6d84a96b5469719fe3c729e1c6542b8d0d87 |
| 6 |
$(package)_dependencies=libxcb |
| 7 |
$(package)_patches=no-test-x11.patch toolchain.txt |
| 8 |
|
| 9 |
define $(package)_preprocess_cmds |
| 10 |
patch -p1 < $($(package)_patch_dir)/no-test-x11.patch && \ |
| 11 |
cp $($(package)_patch_dir)/toolchain.txt toolchain.txt && \ |
| 12 |
sed -i -e 's|@host_prefix@|$(host_prefix)|' \ |
| 13 |
-e 's|@cc@|$($(package)_cc)|' \ |
| 14 |
-e 's|@cxx@|$($(package)_cxx)|' \ |
| 15 |
-e 's|@ar@|$($(package)_ar)|' \ |
| 16 |
-e 's|@strip@|$(host_STRIP)|' \ |
| 17 |
-e 's|@arch@|$(host_arch)|' \ |
| 18 |
toolchain.txt |
| 19 |
endef |
| 20 |
|
| 21 |
define $(package)_config_cmds |
| 22 |
meson setup --cross-file toolchain.txt build -Dxkb-config-root=/usr/share/X11/xkb -Dxkb-config-extra-path=/app/share/X11/xkb |
| 23 |
endef |
| 24 |
|
| 25 |
define $(package)_build_cmds |
| 26 |
ninja -C build |
| 27 |
endef |
| 28 |
|
| 29 |
define $(package)_stage_cmds |
| 30 |
DESTDIR=$($(package)_staging_dir) ninja -C build install |
| 31 |
endef |