mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 14:43:52 +02:00
wayfire: fix plugin installation, modernize template
This commit is contained in:
parent
2e1d86f8a2
commit
c44e02fb97
1 changed files with 13 additions and 9 deletions
|
@ -1,15 +1,13 @@
|
||||||
# Template file for 'wayfire'
|
# Template file for 'wayfire'
|
||||||
pkgname=wayfire
|
pkgname=wayfire
|
||||||
version=0.8.1
|
version=0.8.1
|
||||||
revision=1
|
revision=2
|
||||||
_utils_commit=15f8e16721585ae3eaf278ba71d7064237eb23f5
|
_utils_commit=15f8e16721585ae3eaf278ba71d7064237eb23f5
|
||||||
_touch_commit=8974eb0f6a65464b63dd03b842795cb441fb6403
|
_touch_commit=8974eb0f6a65464b63dd03b842795cb441fb6403
|
||||||
create_wrksrc=yes
|
|
||||||
build_wrksrc="${pkgname}-${version}"
|
|
||||||
build_style=meson
|
build_style=meson
|
||||||
configure_args="-Dprint_trace=false"
|
configure_args="-Dprint_trace=false"
|
||||||
hostmakedepends="pkg-config wayland-devel"
|
hostmakedepends="pkg-config wayland-devel"
|
||||||
makedepends="wf-config-devel wlroots-devel cairo-devel pango-devel json-c++
|
makedepends="wf-config-devel wlroots0.17-devel cairo-devel pango-devel json-c++
|
||||||
$(vopt_if image 'libjpeg-turbo-devel libpng-devel')"
|
$(vopt_if image 'libjpeg-turbo-devel libpng-devel')"
|
||||||
depends="xorg-server-xwayland"
|
depends="xorg-server-xwayland"
|
||||||
short_desc="3D wayland compositor"
|
short_desc="3D wayland compositor"
|
||||||
|
@ -22,6 +20,7 @@ distfiles="https://github.com/WayfireWM/wayfire/archive/refs/tags/v${version}.ta
|
||||||
checksum="04f43df21167db15d266f7e01085b111680d57779ebc27a410201f995b33c6df
|
checksum="04f43df21167db15d266f7e01085b111680d57779ebc27a410201f995b33c6df
|
||||||
5f0a0f523b29bd73e0f11d63079315d3a0a3c3cae6ce9b557e0433e25b5a0d92
|
5f0a0f523b29bd73e0f11d63079315d3a0a3c3cae6ce9b557e0433e25b5a0d92
|
||||||
09061c8a4d3d964e8dcfd1a7b97f7dc43d0fc30743b0993585439c6923ce422f"
|
09061c8a4d3d964e8dcfd1a7b97f7dc43d0fc30743b0993585439c6923ce422f"
|
||||||
|
skip_extraction="${_utils_commit}.tar.gz ${_touch_commit}.tar.gz"
|
||||||
|
|
||||||
# Optimization for nested STL calls
|
# Optimization for nested STL calls
|
||||||
CXXFLAGS="-O3"
|
CXXFLAGS="-O3"
|
||||||
|
@ -36,10 +35,8 @@ if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
post_extract() {
|
post_extract() {
|
||||||
rmdir ${build_wrksrc}/subprojects/wf-utils
|
vsrcextract -C subprojects/wf-utils "${_utils_commit}.tar.gz"
|
||||||
rmdir ${build_wrksrc}/subprojects/wf-touch
|
vsrcextract -C subprojects/wf-touch "${_touch_commit}.tar.gz"
|
||||||
mv wf-utils-${_utils_commit} ${build_wrksrc}/subprojects/wf-utils
|
|
||||||
mv wf-touch-${_touch_commit} ${build_wrksrc}/subprojects/wf-touch
|
|
||||||
}
|
}
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
|
@ -55,6 +52,13 @@ wayfire-devel_package() {
|
||||||
vmove usr/include
|
vmove usr/include
|
||||||
vmove usr/lib/pkgconfig
|
vmove usr/lib/pkgconfig
|
||||||
vmove "usr/lib/*.a"
|
vmove "usr/lib/*.a"
|
||||||
vmove "usr/lib/*.so"
|
|
||||||
|
# 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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue