64 lines
1.6 KiB
Python
64 lines
1.6 KiB
Python
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)
|