48 lines
1.3 KiB
Bash
48 lines
1.3 KiB
Bash
# Template file for 'wayfire'
|
|
pkgname=wayfire
|
|
version=0.5.0
|
|
revision=1
|
|
_utils_commit=f9b5eba437a04a0d1fb9f00a0fdb88c12b9f6b27
|
|
build_style=meson
|
|
hostmakedepends="pkg-config wayland-devel"
|
|
makedepends="wf-config-devel wlroots-devel cairo-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"
|
|
|
|
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
|
|
}
|
|
|
|
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"
|
|
}
|
|
}
|