35 lines
685 B
Python
35 lines
685 B
Python
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"])
|