Compare commits

..
1 Commits
Author SHA1 Message Date
sisungo 2b73f626a1 feat: add package rhash
Signed-off-by: sisungo <[email protected]>
2026-07-03 11:09:53 +08:00
6 changed files with 36 additions and 38 deletions
-4
View File
@@ -1,5 +1,4 @@
import os
import stat
import subprocess
from lib import common
@@ -20,7 +19,4 @@ def autostrip(composer):
continue
if not _is_elf(ent.path):
continue
oldperm = stat.S_IMODE(os.stat(ent.path).st_mode)
os.chmod(ent.path, 0o777)
subprocess.run([strip, ent.path], check=True)
os.chmod(ent.path, oldperm)
+1
View File
@@ -18,6 +18,7 @@ def build():
)
cpp.make()
cpp.make_install()
os.chmod("bin/bmake", 0o655)
on_build(build)
-28
View File
@@ -1,28 +0,0 @@
import os
from lib import cpp
from lib.make import *
version("0.3.3")
source_url(
"https://github.com/sabotage-linux/gettext-tiny/releases/download/v0.3.3/gettext-tiny-0.3.3.tar.xz"
)
def build():
cpp.make(["LIBINTL=musl"])
cpp.make_install(
["LIBINTL=musl", "DESTDIR=../cpp_install", "prefix=/"], chdir=False, move=False
)
os.chdir("../cpp_install")
on_build(build)
package("libintl-dev")
dep("semi-libc-dev @same-arch")
cpp.use_auto_pack(["dev"])
package("gettext")
dep("semi-libc @same-arch")
cpp.use_auto_pack(["bin"])
+1 -6
View File
@@ -34,12 +34,7 @@ dep("libzstd @same-arch")
package("libarchive-tools")
cpp.use_auto_pack(["bin"])
dep("libarchive (same)")
provide("tar")
provide("cpio")
provide("unzip")
link("bin/bsdtar", "/bin/tar")
link("bin/bsdcpio", "/bin/cpio")
link("bin/bsdunzip", "/bin/unzip")
provide("bsdtar")
package("libarchive-dev")
cpp.use_auto_pack(["dev"])
+1
View File
@@ -12,6 +12,7 @@ def build():
cpp.configure()
cpp.make([f"CC={os.environ['CC']}"])
cpp.make_install()
subprocess.run(["sh", "-c", "chmod +w bin/* sbin/*"], check=True)
on_build(build)
+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"])