42 lines
1.1 KiB
Bash
42 lines
1.1 KiB
Bash
# Template file for 'libxkbcommon'.
|
|
pkgname=libxkbcommon
|
|
version=0.8.2
|
|
revision=1
|
|
build_style=meson
|
|
configure_args="-Denable-wayland=true -Denable-docs=false -Denable-x11=true"
|
|
hostmakedepends="pkg-config bison wayland-protocols"
|
|
makedepends="xkeyboard-config libxcb-devel wayland-devel"
|
|
depends="xkeyboard-config"
|
|
short_desc="Library to handle keyboard descriptions"
|
|
maintainer="maxice8 <thinkabit.ukim@gmail.com>"
|
|
license="MIT"
|
|
homepage="https://xkbcommon.org/"
|
|
distfiles="https://xkbcommon.org/download/${pkgname}-${version}.tar.xz"
|
|
checksum=7ab8c4b3403d89d01898066b72cb6069bddeb5af94905a65368f671a026ed58c
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
hostmakedepends+=" wayland-devel"
|
|
makedepends+=" wayland-protocols"
|
|
fi
|
|
|
|
pkg_install() {
|
|
vlicense LICENSE
|
|
}
|
|
|
|
libxkbcommon-x11_package() {
|
|
short_desc+=" - X11 support"
|
|
pkg_install() {
|
|
vmove "usr/lib/*x11*.so.*"
|
|
}
|
|
}
|
|
|
|
libxkbcommon-devel_package() {
|
|
depends="libxcb-devel ${sourcepkg}-x11>=${version}_${revision} ${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|