60 lines
1.6 KiB
Bash
60 lines
1.6 KiB
Bash
# Template file for 'libxkbcommon'
|
|
pkgname=libxkbcommon
|
|
version=1.6.0
|
|
revision=2
|
|
build_style=meson
|
|
# b_ndebug=false is needed to pass the test suite, as it relies on side effects
|
|
# in the arguments of assert calls.
|
|
configure_args="-Denable-x11=true -Denable-docs=false
|
|
-Denable-wayland=true -Denable-xkbregistry=true -Db_ndebug=false"
|
|
hostmakedepends="pkg-config bison wayland-protocols wayland-devel"
|
|
makedepends="xkeyboard-config libxcb-devel wayland-devel wayland-protocols
|
|
xorgproto libxml2-devel"
|
|
depends="xkeyboard-config"
|
|
short_desc="Library to handle keyboard descriptions"
|
|
maintainer="Andrew J. Hesford <ajh@sideband.org>"
|
|
license="MIT"
|
|
homepage="https://xkbcommon.org/"
|
|
changelog="https://raw.githubusercontent.com/xkbcommon/libxkbcommon/master/NEWS"
|
|
distfiles="https://xkbcommon.org/download/libxkbcommon-${version}.tar.xz"
|
|
checksum=0edc14eccdd391514458bc5f5a4b99863ed2d651e4dd761a90abf4f46ef99c2b
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|
|
|
|
libxkbcommon-x11_package() {
|
|
short_desc+=" - X11 support"
|
|
pkg_install() {
|
|
vmove "usr/lib/*x11*.so.*"
|
|
}
|
|
}
|
|
|
|
libxkbregistry_package() {
|
|
short_desc="XKB API to query available rules, models, layouts, variants and options"
|
|
pkg_install() {
|
|
vmove "usr/lib/libxkbregistry.so.*"
|
|
}
|
|
}
|
|
|
|
libxkbcommon-devel_package() {
|
|
depends="${sourcepkg}-x11>=${version}_${revision}
|
|
libxkbregistry>=${version}_${revision}
|
|
${sourcepkg}>=${version}_${revision} libxcb-devel"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|
|
|
|
libxkbcommon-tools_package() {
|
|
short_desc+=" - utilities"
|
|
pkg_install() {
|
|
vmove usr/bin
|
|
vmove usr/libexec
|
|
vmove usr/share/man
|
|
}
|
|
}
|