2017-04-16 00:24:56 +10:00
|
|
|
# Description: A library to handle keyboard descriptions.
|
|
|
|
# URL: https://xkbcommon.org/
|
2023-07-29 22:12:55 +02:00
|
|
|
# Maintainer: CRUX System Team, core-ports at crux dot nu
|
2023-07-22 16:44:16 +02:00
|
|
|
# Depends on: libxml2
|
2023-10-09 15:59:05 +02:00
|
|
|
# Optional: bash-completion wayland-protocols xkeyboard-config
|
2017-04-16 00:24:56 +10:00
|
|
|
|
|
|
|
name=libxkbcommon
|
2023-10-09 15:59:05 +02:00
|
|
|
version=1.6.0
|
|
|
|
release=1
|
2023-01-03 12:00:05 +00:00
|
|
|
source=(https://github.com/xkbcommon/libxkbcommon/archive/xkbcommon-$version.tar.gz)
|
2017-04-16 00:24:56 +10:00
|
|
|
|
|
|
|
build() {
|
2021-02-28 15:08:39 +11:00
|
|
|
prt-get isinst wayland-protocols || PKGMK_XKBCOMMON+=' -D enable-wayland=false'
|
2023-07-29 22:12:55 +02:00
|
|
|
prt-get isinst xkeyboard-config || PKGMK_XKBCOMMON+=' -D enable-x11=false'
|
2023-10-09 15:59:05 +02:00
|
|
|
prt-get isinst bash-completion || PKGMK_XKBCOMMON+=' -D enable-bash-completion=false'
|
2017-04-16 00:24:56 +10:00
|
|
|
|
2023-07-22 16:44:16 +02:00
|
|
|
meson setup build libxkbcommon-xkbcommon-$version $PKGMK_XKBCOMMON \
|
2017-04-16 00:24:56 +10:00
|
|
|
--prefix=/usr \
|
2021-02-28 15:08:39 +11:00
|
|
|
--libexecdir=/usr/lib \
|
2022-02-05 14:19:55 +01:00
|
|
|
--wrap-mode nodownload \
|
|
|
|
-D b_lto=true \
|
|
|
|
-D b_pie=true \
|
2021-02-28 15:08:39 +11:00
|
|
|
-D enable-docs=false
|
2017-04-16 00:24:56 +10:00
|
|
|
|
2023-07-22 16:44:16 +02:00
|
|
|
meson compile -C build -j ${JOBS:-1}
|
|
|
|
DESTDIR=$PKG meson install -C build
|
2017-04-16 00:24:56 +10:00
|
|
|
}
|