awesome: cleanup template, adopt.

xmlto is not longer being used by awesome's build system, which has also been
taking care of installing the desktop file to /usr/share/xsessions for some
time already.
The russian manual pages build without errors, and although I can't really
read russian, they look just fine to me.
This commit is contained in:
0x5c 2022-10-09 05:55:42 -04:00 committed by classabbyamp
parent a4af3e6acb
commit d75d9ae2bb

View file

@ -1,19 +1,19 @@
# Template file for 'awesome'
pkgname=awesome
version=4.3
revision=8
revision=9
build_style=cmake
build_helper="qemu"
configure_args="-DSYSCONFDIR=/etc"
conf_files="/etc/xdg/awesome/rc.lua"
hostmakedepends="ruby-asciidoctor ImageMagick pkg-config xmlto"
hostmakedepends="ruby-asciidoctor ImageMagick pkg-config"
makedepends="libxcb-devel pango-devel xcb-util-devel xcb-util-image-devel
xcb-util-keysyms-devel xcb-util-wm-devel xcb-util-cursor-devel
startup-notification-devel libxdg-basedir-devel
gdk-pixbuf-devel dbus-devel libxkbcommon-devel xcb-util-xrm-devel"
depends="dbus-x11 pango"
short_desc="Highly configurable, next gen framework window manager for X"
maintainer="Orphaned <orphan@voidlinux.org>"
maintainer="0x5c <dev@0x5c.io>"
license="GPL-2.0-or-later"
homepage="http://awesomewm.org"
distfiles="https://github.com/awesomeWM/awesome/releases/download/v${version}/awesome-${version}.tar.xz"
@ -38,19 +38,12 @@ fi
CFLAGS="-fcommon"
pre_configure() {
# Russian manpages fail to build.
vsed -i -e "s|es fr de ru|es fr de|g" CMakeLists.txt
if [ "$build_option_jit" ]; then
# Use correct lua name
vsed -e "s|COMMAND lua\b|COMMAND luajit|" \
vsed -e 's|COMMAND lua\b|COMMAND luajit|' \
-i awesomeConfig.cmake \
-i tests/examples/CMakeLists.txt
vsed -e "s|LUA_COV_RUNNER lua\b|LUA_COV_RUNNER luajit|" \
vsed -e 's|LUA_COV_RUNNER lua\b|LUA_COV_RUNNER luajit|' \
-i tests/examples/CMakeLists.txt
fi
}
post_install() {
vinstall awesome.desktop 644 usr/share/xsessions
}