void-packages/srcpkgs/wlroots0.15/template

40 lines
1.5 KiB
Bash

# Template file for 'wlroots0.15'
pkgname=wlroots0.15
version=0.15.1
revision=2
build_style=meson
# Follow upstream packaging recommendations:
# https://github.com/swaywm/wlroots/wiki/Packaging-recommendations
configure_args="--auto-features=enabled -Dexamples=false -Dwerror=false
-Db_ndebug=false"
hostmakedepends="pkg-config wayland-devel glslang"
_devel_depends="libgbm-devel libglvnd-devel libseat-devel eudev-libudev-devel
libdrm-devel libinput-devel libxkbcommon-devel pixman-devel wayland-devel
wayland-protocols vulkan-loader Vulkan-Headers xcb-util-errors-devel
xcb-util-wm-devel xcb-util-renderutil-devel "
makedepends="${_devel_depends}
libxcb-devel xcb-util-cursor-devel xcb-util-devel xcb-util-image-devel
xcb-util-keysyms-devel xcb-util-xrm-devel xorg-server-xwayland"
short_desc="Modular Wayland compositor library"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="https://gitlab.freedesktop.org/wlroots/wlroots"
distfiles="https://gitlab.freedesktop.org/wlroots/wlroots/-/releases/${version}/downloads/wlroots-${version}.tar.gz"
checksum=5b92f11a52d978919ed1306e0d54c9d59f1762b28d44f0a2da3ef3b351305373
post_install() {
vlicense LICENSE
}
wlroots0.15-devel_package() {
depends="${sourcepkg}>=${version}_${revision} ${_devel_depends}"
provides="virtual-wlroots-devel-${version}_${revision}"
conflicts="wlroots0.14-devel virtual-wlroots-devel"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
}
}