opt/libxkbcommon/Pkgfile

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