feat: add package rhash #73

Merged
sisungo merged 1 commits from sisungo/semios-packages:rhash into master 2026-07-04 20:46:54 +08:00
+33
View File
@@ -0,0 +1,33 @@
from lib import cpp
from lib.make import *
version("1.4.6")
source_url("https://github.com/rhash/RHash/archive/refs/tags/v1.4.6.tar.gz")
def build():
cpp.configure(
[
"--prefix=/",
f"--bindir={get_prefix('rhash-tools')}/bin",
f"--libdir={get_prefix('librhash')}/lib",
"--disable-gettext",
]
)
cpp.make()
cpp.make_install()
on_build(build)
package("librhash")
dep("semi-libc @same-arch")
cpp.use_auto_pack(["lib"])
package("rhash-tools")
dep("librhash (same)")
cpp.use_auto_pack(["bin"])
package("librhash-dev")
dep("librhash (same)")
cpp.use_auto_pack(["dev"])