void-packages/srcpkgs/libxkbcommon/template

37 lines
981 B
Bash

# Template file for 'libxkbcommon'.
pkgname=libxkbcommon
version=0.5.0
revision=3
build_style=gnu-configure
configure_args="--disable-static"
hostmakedepends="automake pkg-config libtool flex xorg-util-macros"
makedepends="xkeyboard-config libxcb-devel"
depends="xkeyboard-config"
short_desc="Library to handle keyboard descriptions"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="http://xkbcommon.org/"
license="MIT/X11"
distfiles="http://xkbcommon.org/download/${pkgname}-${version}.tar.xz"
checksum=90bd7824742b9a6f52a6cf80e2cadd6f5349cf600a358d08260772615b89d19c
pre_configure() {
autoreconf -fi
}
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"
}
}