36103311d9
remove cursor and set background black
55 lines
2.1 KiB
Makefile
55 lines
2.1 KiB
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
# Copyright (C) 2021-present Team LibreELEC (https://libreelec.tv)
|
|
|
|
PKG_NAME="sway"
|
|
PKG_VERSION="1.9"
|
|
PKG_SHA256="a63b2df8722ee595695a0ec6c84bf29a055a9767e63d8e4c07ff568cb6ee0b51"
|
|
PKG_LICENSE="MIT"
|
|
PKG_SITE="https://swaywm.org/"
|
|
PKG_URL="https://github.com/swaywm/sway/releases/download/${PKG_VERSION}/sway-${PKG_VERSION}.tar.gz"
|
|
PKG_DEPENDS_TARGET="toolchain wayland wayland-protocols libdrm libxkbcommon libinput cairo pango libjpeg-turbo dbus json-c wlroots gdk-pixbuf swaybg foot bemenu xcb-util-wm xwayland xkbcomp"
|
|
PKG_LONGDESC="i3-compatible Wayland compositor"
|
|
PKG_TOOLCHAIN="meson"
|
|
|
|
# to enable xwayland package: https://gitlab.freedesktop.org/xorg/lib/libxcb-wm/-/tree/master/icccm?ref_type=heads
|
|
|
|
PKG_MESON_OPTS_TARGET="-Ddefault-wallpaper=false \
|
|
-Dzsh-completions=false \
|
|
-Dbash-completions=false \
|
|
-Dfish-completions=false \
|
|
-Dswaybar=true \
|
|
-Dswaynag=true \
|
|
-Dxwayland=enabled \
|
|
-Dtray=disabled \
|
|
-Dgdk-pixbuf=enabled \
|
|
-Dman-pages=disabled \
|
|
-Dsd-bus-provider=auto"
|
|
|
|
pre_configure_target() {
|
|
# sway does not build without -Wno flags as all warnings being treated as errors
|
|
export TARGET_CFLAGS=$(echo "${TARGET_CFLAGS} -Wno-unused-variable")
|
|
}
|
|
|
|
post_makeinstall_target() {
|
|
mkdir -p ${INSTALL}/usr/lib/sway
|
|
mkdir -p ${INSTALL}/usr/bin
|
|
cp ${PKG_DIR}/scripts/sway.sh ${INSTALL}/usr/bin
|
|
cp ${PKG_DIR}/scripts/sway-config ${INSTALL}/usr/lib/sway
|
|
mkdir -p ${INSTALL}/usr/lib/autostart/common
|
|
cp ${PKG_DIR}/autostart/111-sway-init ${INSTALL}/usr/lib/autostart/common
|
|
cp ${PKG_DIR}/scripts/sway-touch.sh ${INSTALL}/usr/bin
|
|
|
|
chmod +x ${INSTALL}/usr/bin/sway*
|
|
|
|
# install config & wallpaper
|
|
mkdir -p ${INSTALL}/usr/share/sway
|
|
cp ${PKG_DIR}/config/* ${INSTALL}/usr/share/sway
|
|
|
|
# clean up
|
|
safe_remove ${INSTALL}/etc
|
|
safe_remove ${INSTALL}/usr/share/wayland-sessions
|
|
}
|
|
|
|
post_install() {
|
|
enable_service sway-touch.service
|
|
}
|