void-packages/srcpkgs/libwaylandpp/template

58 lines
1.5 KiB
Bash

# Template file for 'libwaylandpp'
pkgname=libwaylandpp
version=0.2.5
revision=2
wrksrc="waylandpp-${version}"
build_style=cmake
configure_args="-DBUILD_SCANNER=TRUE -DBUILD_LIBRARIES=TRUE
-DBUILD_DOCUMENTATION=TRUE -DBUILD_EXAMPLES=TRUE
-DWAYLAND_SCANNERPP=/usr/bin/wayland-scanner++"
hostmakedepends="pkg-config doxygen graphviz"
makedepends="wayland-devel MesaLib-devel pugixml-devel"
short_desc="Wayland C++ bindings"
maintainer="maxice8 <thinkabit.ukim@gmail.com>"
license="MIT"
homepage="https://github.com/NilsBrause/waylandpp"
distfiles="https://github.com/NilsBrause/waylandpp/archive/${version}.tar.gz"
checksum=5a4361f73d2bee65bfe54b954ce085c9bfc7bc4429ac2bdc97c10e3b84660907
subpackages="libwaylandpp-doc wayland-scanner++ libwaylandpp-devel"
case "$XBPS_TARGET_MACHINE" in
armv7l-musl) broken="error: cannot convert 'const wayland::surface_t' to 'wl_surface*'" ;;
esac
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" wayland-scanner++"
fi
post_install() {
vlicense LICENSE
}
libwaylandpp-doc_package() {
archs=noarch
short_desc+=" - documentation"
pkg_install() {
vmove usr/share/doc
}
}
wayland-scanner++_package() {
short_desc="Tool to generate C++ proxy methods"
pkg_install() {
vmove usr/bin/wayland-scanner++
vmove usr/lib/pkgconfig/wayland-scanner++.pc
}
}
libwaylandpp-devel_package() {
depends="libwaylandpp>=${version}_${revision} wayland-devel"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
vmove usr/share/man/man3
}
}