void-packages/srcpkgs/wayfire/template
Érico Rolim 744b02f46c wayfire: add image build option, session file.
The session file used by display managers isn't installed by the build
system.
2020-10-01 21:52:25 -07:00

51 lines
1.5 KiB
Bash

# Template file for 'wayfire'
pkgname=wayfire
version=0.5.0
revision=2
_utils_commit=f9b5eba437a04a0d1fb9f00a0fdb88c12b9f6b27
build_style=meson
hostmakedepends="pkg-config wayland-devel"
makedepends="wf-config-devel wlroots-devel cairo-devel
$(vopt_if image 'libjpeg-turbo-devel libpng-devel')"
depends="xorg-server-xwayland $(vopt_if elogind elogind)"
short_desc="3D wayland compositor"
maintainer="Érico Nogueira <ericonr@disroot.org>"
license="MIT"
homepage="https://wayfire.org"
distfiles="https://github.com/WayfireWM/wayfire/archive/${version}.tar.gz
https://github.com/WayfireWM/wf-utils/archive/${_utils_commit}.tar.gz"
checksum="24c1a2c963dac5af762f87cd024bc3dd736ec9a28a6735d357a05e8f6502e8aa
5c3e8bfefd74083a2548b6a95a070000cf73591bfe78335413da5c7fb82340cb"
build_options="elogind image"
build_options_default="image"
desc_option_image="Enable JPEG and PNG support"
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
makedepends+=" libexecinfo-devel"
fi
post_extract() {
rmdir subprojects/wf-utils
mv ../wf-utils-${_utils_commit} subprojects/wf-utils
}
post_install() {
if [ -z "$build_option_elogind" ]; then
# must be setuid without logind!
chmod u+s ${DESTDIR}/usr/bin/wayfire
fi
vlicense LICENSE
vsconf wayfire.ini
vinstall wayfire.desktop 0644 usr/share/wayland-sessions
}
wayfire-devel_package() {
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
}
}