mirror of
https://github.com/wownero/wowlet.git
synced 2026-10-17 07:11:29 +02:00
32 lines
1.1 KiB
Makefile
32 lines
1.1 KiB
Makefile
package=libxkbcommon
|
|
$(package)_version=1.13.1
|
|
$(package)_download_path=https://github.com/xkbcommon/libxkbcommon/archive/refs/tags
|
|
$(package)_file_name=xkbcommon-$($(package)_version).tar.gz
|
|
$(package)_sha256_hash=aeb951964c2f7ecc08174cb5517962d157595e9e3f38fc4a130b91dc2f9fec18
|
|
$(package)_dependencies=libxcb
|
|
$(package)_patches=no-test-x11.patch toolchain.txt
|
|
|
|
define $(package)_preprocess_cmds
|
|
patch -p1 < $($(package)_patch_dir)/no-test-x11.patch && \
|
|
cp $($(package)_patch_dir)/toolchain.txt toolchain.txt && \
|
|
sed -i -e 's|@host_prefix@|$(host_prefix)|' \
|
|
-e 's|@cc@|$($(package)_cc)|' \
|
|
-e 's|@cxx@|$($(package)_cxx)|' \
|
|
-e 's|@ar@|$($(package)_ar)|' \
|
|
-e 's|@strip@|$(host_STRIP)|' \
|
|
-e 's|@arch@|$(host_arch)|' \
|
|
toolchain.txt
|
|
endef
|
|
|
|
define $(package)_config_cmds
|
|
meson setup --cross-file toolchain.txt build -Dxkb-config-root=/usr/share/X11/xkb -Dxkb-config-extra-path=/app/share/X11/xkb
|
|
endef
|
|
|
|
define $(package)_build_cmds
|
|
ninja -C build
|
|
endef
|
|
|
|
define $(package)_stage_cmds
|
|
DESTDIR=$($(package)_staging_dir) ninja -C build install
|
|
endef
|