void-packages/srcpkgs/libxkbcommon/template
2019-11-17 13:08:53 +01:00

37 lines
1.1 KiB
Bash

# Template file for 'libxkbcommon'
pkgname=libxkbcommon
version=0.9.1
revision=1
wrksrc="${pkgname}-${pkgname#lib}-${version}"
build_style=meson
configure_args="-Denable-wayland=true -Denable-docs=false -Denable-x11=true"
hostmakedepends="pkg-config bison wayland-protocols wayland-devel"
makedepends="xkeyboard-config libxcb-devel wayland-devel wayland-protocols"
depends="xkeyboard-config"
short_desc="Library to handle keyboard descriptions"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="https://xkbcommon.org/"
distfiles="https://github.com/xkbcommon/libxkbcommon/archive/xkbcommon-${version}.tar.gz"
checksum=4d869ed841a27ca4a2e5ca41ca6bacc97f8f6b42b1aa6ae9ee29c6e9768e2f1a
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"
}
}