2017-04-16 00:24:56 +10:00
|
|
|
# Description: A library to handle keyboard descriptions.
|
|
|
|
# URL: https://xkbcommon.org/
|
|
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
2021-02-28 15:08:39 +11:00
|
|
|
# Depends on: meson ninja xkeyboard-config
|
|
|
|
# Optional: wayland-protocols
|
2017-04-16 00:24:56 +10:00
|
|
|
|
|
|
|
name=libxkbcommon
|
2022-05-31 22:07:26 +02:00
|
|
|
version=1.4.1
|
2022-11-16 19:54:05 +00:00
|
|
|
release=2
|
|
|
|
source=(https://github.com/xkbcommon/libxkbcommon/archive/xkbcommon-$version.tar.gz
|
|
|
|
320f56d2a4a31026e5c8d3b60303af98bf885e1b.patch)
|
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'
|
2022-11-16 19:54:05 +00:00
|
|
|
patch -Np1 -d libxkbcommon-xkbcommon-$version -i $SRC/320f56d2a4a31026e5c8d3b60303af98bf885e1b.patch
|
2017-04-16 00:24:56 +10:00
|
|
|
|
2021-02-28 15:08:39 +11:00
|
|
|
meson 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
|
|
|
|
2019-10-26 02:06:31 +11:00
|
|
|
ninja -C build -j ${JOBS:-1}
|
|
|
|
DESTDIR=$PKG ninja -C build install
|
2017-04-16 00:24:56 +10:00
|
|
|
}
|