feat: add package sway & swaybg
Signed-off-by: sisungo <[email protected]>
This commit is contained in:
1 parent
1842b8db2e
commit
04cc52a0f3
2 files changed
+97
No files matched your search
@@ -0,0 +1,63 @@
|
||||
import os
|
||||
|
||||
from lib import cpp
|
||||
from lib.make import *
|
||||
|
||||
|
||||
version("1.12")
|
||||
description("i3-compatible Wayland compositor")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_managed("github://swaywm/sway#1.12")
|
||||
|
||||
builddep("shortcut/c")
|
||||
builddep("shortcut/meson")
|
||||
builddep("libwlr-dev @target")
|
||||
builddep("linux-dev @target")
|
||||
builddep("libwayland-dev @target")
|
||||
builddep("wayland-protocols @target")
|
||||
builddep("libpcre2-dev @target")
|
||||
builddep("pcre2-tools @target")
|
||||
builddep("libpango-dev @target")
|
||||
builddep("libcairo-dev @target")
|
||||
builddep("libjson-c-dev @target")
|
||||
builddep("libinput-dev @target")
|
||||
|
||||
|
||||
def build():
|
||||
os.environ["CFLAGS"] = os.environ.get("CFLAGS", "") + " -Wno-error"
|
||||
cpp.meson_setup([
|
||||
"--prefix=/",
|
||||
f"--bindir={get_prefix('sway')}/bin",
|
||||
f"--datadir={get_prefix('sway')}/share",
|
||||
f"--sysconfdir={get_prefix('sway')}/share/config",
|
||||
])
|
||||
cpp.meson_compile()
|
||||
cpp.meson_install()
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
def pack(composer):
|
||||
composer.add("bin")
|
||||
composer.makedir("share")
|
||||
composer.add("share/config")
|
||||
composer.add("share/backgrounds")
|
||||
composer.add("share/wayland-sessions")
|
||||
|
||||
package("sway")
|
||||
dep("semi-libc @same-arch")
|
||||
dep("libcairo @same-arch")
|
||||
dep("libdrm @same-arch")
|
||||
dep("libjson-c @same-arch")
|
||||
dep("libevdev @same-arch")
|
||||
dep("libinput @same-arch")
|
||||
dep("lxdeviced-libudev @same-arch")
|
||||
dep("libpango @same-arch")
|
||||
dep("libgobject @same-arch")
|
||||
dep("libglib @same-arch")
|
||||
dep("libpcre2 @same-arch")
|
||||
dep("libpixman @same-arch")
|
||||
dep("libwayland @same-arch")
|
||||
dep("libwlr @same-arch")
|
||||
dep("libxkbcommon @same-arch")
|
||||
on_pack(pack)
|
||||
@@ -0,0 +1,34 @@
|
||||
import os
|
||||
|
||||
from lib import cpp
|
||||
from lib.make import *
|
||||
|
||||
|
||||
version("1.2.2")
|
||||
description("Wallpaper tool for Wayland compositors")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_managed("github://swaywm/swaybg#v1.2.2")
|
||||
|
||||
builddep("shortcut/c")
|
||||
builddep("shortcut/meson")
|
||||
builddep("libwayland-dev @target")
|
||||
builddep("wayland-protocols @target")
|
||||
builddep("libcairo-dev @target")
|
||||
|
||||
|
||||
def build():
|
||||
cpp.meson_setup([
|
||||
"--prefix=/",
|
||||
f"--bindir={get_prefix('swaybg')}/bin",
|
||||
])
|
||||
cpp.meson_compile()
|
||||
cpp.meson_install()
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
package("swaybg")
|
||||
dep("semi-libc @same-arch")
|
||||
dep("libcairo @same-arch")
|
||||
dep("libwayland @same-arch")
|
||||
cpp.use_auto_pack(["bin"])
|
||||
Reference in new issue
Block a user