@@ -0,0 +1,37 @@
|
||||
from lib.make import *
|
||||
from lib import cpp, arch
|
||||
|
||||
|
||||
version("1.49")
|
||||
description("Additional standard Wayland protocols.")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url("https://gitlab.freedesktop.org/wayland/wayland-protocols/-/archive/1.49/wayland-protocols-1.49.tar.gz")
|
||||
|
||||
builddep("shortcut/meson")
|
||||
builddep("shortcut/c++")
|
||||
builddep(f"libffi-dev @{arch.get_target()}")
|
||||
builddep(f"libexpat-dev @{arch.get_target()}")
|
||||
builddep(f"pkgconf @{arch.get_target()}")
|
||||
builddep("gnu-sed")
|
||||
|
||||
|
||||
def build():
|
||||
cpp.meson_setup([
|
||||
f"--prefix={get_prefix('wayland-protocols')}",
|
||||
f"--datadir={get_prefix('wayland-protocols')}/share",
|
||||
"-Dtests=false",
|
||||
])
|
||||
cpp.meson_compile()
|
||||
cpp.meson_install()
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
def pack(composer):
|
||||
composer.makedir("lib")
|
||||
composer.add_dir("share/pkgconfig", "lib/pkgconfig")
|
||||
composer.makedir("share")
|
||||
composer.add_dir("share/wayland-protocols")
|
||||
|
||||
package("wayland-protocols")
|
||||
on_pack(pack)
|
||||
Reference in New Issue
Block a user