opt/libxkbcommon/Pkgfile

28 lines
894 B
Plaintext
Raw Normal View History

2017-04-15 16:24:56 +02:00
# Description: A library to handle keyboard descriptions.
# URL: https://xkbcommon.org/
# 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-15 16:24:56 +02:00
name=libxkbcommon
2023-10-09 15:59:05 +02:00
version=1.6.0
release=1
2023-01-03 13:00:05 +01:00
source=(https://github.com/xkbcommon/libxkbcommon/archive/xkbcommon-$version.tar.gz)
2017-04-15 16:24:56 +02:00
build() {
2021-02-28 05:08:39 +01:00
prt-get isinst wayland-protocols || PKGMK_XKBCOMMON+=' -D enable-wayland=false'
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-15 16:24:56 +02:00
2023-07-22 16:44:16 +02:00
meson setup build libxkbcommon-xkbcommon-$version $PKGMK_XKBCOMMON \
2017-04-15 16:24:56 +02:00
--prefix=/usr \
2021-02-28 05:08:39 +01: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 05:08:39 +01:00
-D enable-docs=false
2017-04-15 16:24:56 +02:00
2023-07-22 16:44:16 +02:00
meson compile -C build -j ${JOBS:-1}
DESTDIR=$PKG meson install -C build
2017-04-15 16:24:56 +02:00
}