void-packages/srcpkgs/wayfire/template
travankor 051b05d418 wayfire: enable optimized binary
Recommended by upstream author to improve performance and lower CPU use.
2021-02-24 02:09:33 -03:00

57 lines
1.7 KiB
Bash

# Template file for 'wayfire'
pkgname=wayfire
version=0.7.0
revision=2
_utils_commit=f45641beef46babdc8f1b8d18a924e72beaf8ee6
_touch_commit=b1075c54a280f913edc26b9757262f4f9d6b62b0
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"
short_desc="3D wayland compositor"
maintainer="Érico Nogueira <ericonr@disroot.org>"
license="MIT"
homepage="https://wayfire.org"
distfiles="https://github.com/WayfireWM/wayfire/archive/v${version}.tar.gz
https://github.com/WayfireWM/wf-utils/archive/${_utils_commit}.tar.gz
https://github.com/WayfireWM/wf-touch/archive/${_touch_commit}.tar.gz"
checksum="b1a94ad2843db19e78cbd361ceebaade4507647ad893d5b5117a9fc7724ce41c
d172f8c21e0bac01e4116cd957fb0159c5cb39ddfdce897beb0d9c753796d5f1
2b22e03d3a522baeff5798f630ffe5aa95899fd3233b291527503af5fd3e30be"
# 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_extract() {
rmdir subprojects/wf-utils
rmdir subprojects/wf-touch
mv ../wf-utils-${_utils_commit} subprojects/wf-utils
mv ../wf-touch-${_touch_commit} subprojects/wf-touch
}
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"
vmove "usr/lib/*.so"
}
}