forked from semios/semios-packages
Compare commits
4
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4e84558f9a | ||
|
|
89744adb38 | ||
|
|
fc753703c4 | ||
|
|
132ed2d8b3 |
@@ -0,0 +1,30 @@
|
||||
from lib.make import *
|
||||
from lib import cpp
|
||||
|
||||
|
||||
version("3.5.2")
|
||||
description("an interactive process viewer")
|
||||
maintainer("sisungo <[email protected]>")
|
||||
source_url("https://github.com/htop-dev/htop/releases/download/3.5.2/htop-3.5.2.tar.xz")
|
||||
|
||||
builddep("shortcut/autotools")
|
||||
builddep("shortcut/c")
|
||||
builddep(f"libncurses-dev @{arch.get_target()}")
|
||||
builddep(f"linux-dev @{arch.get_target()}")
|
||||
|
||||
|
||||
def build():
|
||||
cpp.configure([
|
||||
f"--prefix={get_prefix('htop')}",
|
||||
"--enable-unicode",
|
||||
])
|
||||
cpp.make()
|
||||
cpp.make_install()
|
||||
|
||||
on_build(build)
|
||||
|
||||
|
||||
package("htop")
|
||||
dep("libncurses @same-arch")
|
||||
dep("semi-libc @same-arch")
|
||||
cpp.use_auto_pack(["bin"])
|
||||
@@ -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)
|
||||
Reference in New Issue
Block a user