59 lines
1.7 KiB
Bash
59 lines
1.7 KiB
Bash
# Template file for 'wayfire'
|
|
pkgname=wayfire
|
|
version=0.7.2
|
|
revision=1
|
|
_utils_commit=889fdafa7b09fc6ce70313fd3f067cfc8c21a2ac
|
|
_touch_commit=8974eb0f6a65464b63dd03b842795cb441fb6403
|
|
build_style=meson
|
|
configure_args="-Dprint_trace=false"
|
|
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="e45fddcc22b7149d793fea08763c5b3dc0edf7c0be9d094575a32cf847560fd4
|
|
bbde37e1a8b5ecb322096b32891593c14264800291be8773f7f0708fc110ed2f
|
|
09061c8a4d3d964e8dcfd1a7b97f7dc43d0fc30743b0993585439c6923ce422f"
|
|
|
|
# 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"
|
|
}
|
|
}
|