forked from semios/semios-packages
Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
21dedb3568 |
@@ -0,0 +1,33 @@
|
||||
from lib.make import *
|
||||
from lib import rust
|
||||
|
||||
|
||||
version("0.98.0")
|
||||
description("The Rust package manager")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url("https://github.com/rust-lang/cargo/archive/refs/tags/0.98.0.tar.gz")
|
||||
|
||||
builddep("shortcut/c")
|
||||
builddep("cargo")
|
||||
builddep("rust")
|
||||
builddep(f"aws-lc-dev @{arch.get_target()}")
|
||||
builddep(f"pkgconf @{arch.get_target()}")
|
||||
builddep(f"libz-ng-dev @{arch.get_target()}")
|
||||
builddep(f"libcurl-dev @{arch.get_target()}")
|
||||
builddep(f"libgit2-dev @{arch.get_target()}")
|
||||
builddep(f"libssh2-dev @{arch.get_target()}")
|
||||
|
||||
|
||||
def build():
|
||||
rust.build()
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
package("cargo")
|
||||
dep("libssl @same-arch")
|
||||
dep("libcrypto @same-arch")
|
||||
dep("libz @same-arch")
|
||||
dep("semi-libc @same-arch")
|
||||
recommend("rust")
|
||||
rust.use_auto_pack(["bin"])
|
||||
@@ -1,35 +0,0 @@
|
||||
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)
|
||||
Reference in New Issue
Block a user