void-packages/srcpkgs/wlroots0.17/template

41 lines
1.6 KiB
Bash

# Template file for 'wlroots0.17'
pkgname=wlroots0.17
version=0.17.3
revision=2
build_style=meson
# Follow upstream packaging recommendations:
# https://gitlab.freedesktop.org/wlroots/wlroots/-/wikis/Packaging-recommendations
configure_args="--auto-features=enabled -Dexamples=false -Dwerror=false
-Db_ndebug=false"
hostmakedepends="pkg-config wayland-devel glslang hwids"
_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-devel xcb-util-errors-devel
xcb-util-wm-devel xcb-util-renderutil-devel libdisplay-info-devel libliftoff-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 ${pkgname#wlroots}"
maintainer="Andrew J. Hesford <ajh@sideband.org>"
license="MIT"
homepage="https://gitlab.freedesktop.org/wlroots/wlroots"
distfiles="${homepage}/-/releases/${version}/downloads/wlroots-${version}.tar.gz"
checksum=04d31521bd2b737541b9680098e55ebaaf956e68d692f80479f4ee1236606d98
post_install() {
vlicense LICENSE
}
wlroots0.17-devel_package() {
depends="${sourcepkg}>=${version}_${revision} ${_devel_depends}"
provides="virtual-wlroots-devel-${version}_${revision}"
conflicts="wlroots0.16-devel wlroots0.15-devel wlroots0.14-devel
virtual-wlroots-devel"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
}
}