Compare commits

..
Author SHA1 Message Date
sisungo 4e84558f9a feat: add package spirv-headers
Signed-off-by: sisungo <[email protected]>
2026-08-11 19:46:49 +08:00
2 changed files with 35 additions and 45 deletions
+35
View File
@@ -0,0 +1,35 @@
from lib.make import *
from lib import cpp
version("1.4.357.0")
description("SPIR-V headers")
maintainer("sisungo <[email protected]>")
source_url("https://github.com/KhronosGroup/SPIRV-Headers/archive/refs/tags/vulkan-sdk-1.4.357.0.tar.gz")
builddep("shortcut/cmake")
builddep("shortcut/c")
def build():
cpp.cmake()
cpp.ninja()
cpp.ninja_install()
on_build(build)
def fix_pc(path):
with open(path, 'r') as file:
content = file.read()
content = content.replace("includedir=//usr/include", f"includedir={get_prefix('spirv-headers')}/include")
with open(path, 'wt+') as file:
file.write(content)
def pack(composer):
composer.add_dir("include", "include")
composer.add_dir("share", "lib")
fix_pc(f"{composer.workdir}/bundle/lib/pkgconfig/SPIRV-Headers.pc")
package("spirv-headers")
on_pack(pack)
-45
View File
@@ -1,45 +0,0 @@
from lib.make import *
from lib import cpp, arch
version("1.26.0")
description("a replacement for the X11 window system protocol and architecture with the aim to be easier to develop, extend, and maintain")
maintainer("sisungo <[email protected]>")
source_git("https://gitlab.freedesktop.org/wayland/wayland.git", "1.26.0")
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('libwayland-dev')}",
"-Ddocumentation=false",
"-Ddtd_validation=false",
"-Dicon_directory=/share/icons",
])
cpp.meson_compile()
cpp.meson_install()
on_build(build)
package("libwayland")
dep("libffi @same-arch")
cpp.use_auto_pack(["lib"])
def pack_dev(composer):
composer.add_dir("bin", "bin")
composer.add_dir("include", "include")
composer.add_dir("share", "share")
composer.makedir("lib")
composer.add_dir("lib/pkgconfig", "lib/pkgconfig")
package("libwayland-dev")
dep("libexpat @same-arch")
cpp.use_auto_pack(["dev", "bin"])