summaryrefslogtreecommitdiffstats
path: root/windowmanagers
diff options
context:
space:
mode:
authorPavel Vinogradov2018-12-23 23:33:44 -0500
committerPavel Vinogradov2018-12-23 23:35:25 -0500
commitb23f926a52dfa9a8a7288891c084acdc518d8ac5 (patch)
tree65f65e193e303bec1ab34c7f89cb1c97971e1bad /windowmanagers
parent67f22e2a1122f8d46cee52b664d9028bd0aae6d6 (diff)
windowmanagers/sway: new spell, i3-compatible Wayland compositor
Diffstat (limited to 'windowmanagers')
-rwxr-xr-xwindowmanagers/sway/CONFIGURE1
-rwxr-xr-xwindowmanagers/sway/DEPENDS29
-rwxr-xr-xwindowmanagers/sway/DETAILS25
-rw-r--r--windowmanagers/sway/HISTORY2
-rwxr-xr-xwindowmanagers/sway/INSTALL5
-rwxr-xr-xwindowmanagers/sway/PREPARE2
6 files changed, 64 insertions, 0 deletions
diff --git a/windowmanagers/sway/CONFIGURE b/windowmanagers/sway/CONFIGURE
new file mode 100755
index 0000000000..9f48d22f39
--- /dev/null
+++ b/windowmanagers/sway/CONFIGURE
@@ -0,0 +1 @@
+. "${GRIMOIRE}/MESON_CONFIGURE"
diff --git a/windowmanagers/sway/DEPENDS b/windowmanagers/sway/DEPENDS
new file mode 100755
index 0000000000..5044fe8b49
--- /dev/null
+++ b/windowmanagers/sway/DEPENDS
@@ -0,0 +1,29 @@
+if [[ "${SWAY_BRANCH}" == "scm" ]]; then
+ depends git
+fi &&
+
+depends meson &&
+depends python3 &&
+depends ninja-build-system &&
+depends cairo &&
+depends json-c &&
+depends pango &&
+depends pcre &&
+depends wayland &&
+depends wayland-protocols &&
+depends wlroots &&
+
+optional_depends gdk-pixbuf2 \
+ "" \
+ "" \
+ "for swaybg and swaylock" &&
+
+optional_depends linux-pam \
+ "" \
+ "" \
+ "PAM support for swaylock" &&
+
+optional_depends -sub "XWAYLAND" XSERVER \
+ "enable-xwayland=true" \
+ "enable-xwayland=false" \
+ "XWayland support"
diff --git a/windowmanagers/sway/DETAILS b/windowmanagers/sway/DETAILS
new file mode 100755
index 0000000000..cf65ab0df0
--- /dev/null
+++ b/windowmanagers/sway/DETAILS
@@ -0,0 +1,25 @@
+. "${GRIMOIRE}/MESON_FUNCTIONS"
+ SPELL="sway"
+if [[ "${SWAY_BRANCH}" == "scm" ]]; then
+ VERSION="$(get_scm_version)"
+ SOURCE="${SPELL}-git.tar.xz"
+ FORCE_DOWNLOAD="on"
+ SOURCE_URL[0]="git://github.com/swaywm/${SPELL}:${SPELL}-git"
+ SOURCE_IGNORE="volatile"
+SOURCE_DIRECTORY="${BUILD_DIRECTORY}/${SPELL}-git"
+else
+ VERSION="1.0-beta.2"
+ SOURCE_HASH="sha512:532acb6f1510578b7d9d222f04ff8104c836428ef215ddb6d7181839231d65101b3d47c8389a38f14cf59692116495b60759062ebd797edf83cf77aebaac379f"
+ SOURCE="${SPELL}-${VERSION}.tar.gz"
+SOURCE_DIRECTORY="${BUILD_DIRECTORY}/${SPELL}-${VERSION}"
+ SOURCE_URL[0]="https://github.com/swaywm/${SPELL}/archive/${VERSION}.tar.gz"
+fi
+ LICENSE[0]="MIT"
+ WEB_SITE="https://swaywm.org"
+ ENTERED="20181223"
+ SHORT="i3-compatible Wayland compositor"
+cat << EOF
+Sway is a tiling Wayland compositor and a drop-in replacement for the i3 window
+manager for X11. It works with your existing i3 configuration and supports most
+of i3's features, plus a few extras.
+EOF
diff --git a/windowmanagers/sway/HISTORY b/windowmanagers/sway/HISTORY
new file mode 100644
index 0000000000..1c1bf70eb7
--- /dev/null
+++ b/windowmanagers/sway/HISTORY
@@ -0,0 +1,2 @@
+2018-12-23 Pavel Vinogradov <public@sourcemage.org>
+ * CONFIGURE, DEPENDS, DETAILS, INSTALL, PREPARE: created spell
diff --git a/windowmanagers/sway/INSTALL b/windowmanagers/sway/INSTALL
new file mode 100755
index 0000000000..44f22a0f92
--- /dev/null
+++ b/windowmanagers/sway/INSTALL
@@ -0,0 +1,5 @@
+default_install &&
+
+if ! spell_ok "elogind" || ! spell_ok "systemd"; then
+ chmod a+s "${INSTALL_ROOT}/usr/bin/sway"
+fi
diff --git a/windowmanagers/sway/PREPARE b/windowmanagers/sway/PREPARE
new file mode 100755
index 0000000000..e38d86f7e9
--- /dev/null
+++ b/windowmanagers/sway/PREPARE
@@ -0,0 +1,2 @@
+. "${GRIMOIRE}/FUNCTIONS" &&
+prepare_select_branch stable scm