53 lines
1.4 KiB
Bash
53 lines
1.4 KiB
Bash
# Template file for 'wayfire'
|
|
pkgname=wayfire
|
|
version=0.9.0
|
|
revision=1
|
|
build_style=meson
|
|
configure_args="-Dprint_trace=false"
|
|
hostmakedepends="pkg-config wayland-devel"
|
|
makedepends="wf-config-devel wlroots0.17-devel cairo-devel pango-devel json-c++
|
|
libgomp-devel $(vopt_if image 'libjpeg-turbo-devel libpng-devel')"
|
|
depends="xorg-server-xwayland"
|
|
short_desc="3D wayland compositor"
|
|
maintainer="Érico Nogueira <ericonr@disroot.org>"
|
|
license="MIT"
|
|
homepage="https://wayfire.org"
|
|
distfiles="https://github.com/WayfireWM/wayfire/releases/download/v${version}/wayfire-${version}.tar.xz"
|
|
checksum=dd0c9c08b8a72a2d8c3317c8be6c42b17a493c25abab1d02ac09c24eaa95229d
|
|
|
|
# Optimization for nested STL calls
|
|
CXXFLAGS="-O3"
|
|
LDFLAGS="-Wl,-O1"
|
|
|
|
build_options="image"
|
|
build_options_default="image"
|
|
desc_option_image="Enable JPEG and PNG support"
|
|
|
|
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
|
|
makedepends+=" libexecinfo-devel"
|
|
fi
|
|
|
|
post_install() {
|
|
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/*.a"
|
|
|
|
# At least one unverisoned shlib is a plugin helper
|
|
# that should remain in the main package
|
|
local shlib
|
|
for shlib in "${DESTDIR}"/usr/lib/*.so; do
|
|
[ -L "${shlib}" ] || continue
|
|
vmove "${shlib#${DESTDIR}/}"
|
|
done
|
|
}
|
|
}
|