Skip to content

Commit 2535c44

Browse files
committed
test multpackage
1 parent d5bb913 commit 2535c44

File tree

1 file changed

+102
-0
lines changed

1 file changed

+102
-0
lines changed
Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
#!/SBUILD ver @v1.0.0
2+
#SELF: https://raw.githubusercontent.com/pkgforge/soarpkgs/refs/heads/main/binaries/a-utils/static.official.stable.yaml
3+
_disabled: false
4+
5+
pkg: "a-utils"
6+
pkg_id: "github.com.xplshn.a-utils"
7+
pkg_type: "static"
8+
category:
9+
- "ConsoleOnly"
10+
- "Utility"
11+
description:
12+
_default: "Core Utilities of https://github.com/xplshn/Andes"
13+
a-utils: "Multicall Binary with All Core Utilities of https://github.com/xplshn/Andes"
14+
cal: "an implementation of the POSIX cal command, as described in the OpenBSD manpage, that strives to have the same alignment as Busybox's and has (or tries to have) the Toybox's cal option to highlight specified days"
15+
catv: "the harmful features of cat"
16+
ccat: "syntax highlighted cat"
17+
dial: "dials a network endpoint, ported from Torgo"
18+
ed: "Ed with syntax highlighting (ed from u-root but with syntax highlighting)"
19+
envsubst: "works like the built-in that many shells have. https://manned.org/man/alpine/envsubst"
20+
fin: "file info command, from Torgo"
21+
fortune: "the cookie reader program, it gives you a random quote each time you execute it"
22+
hpwd: "an implementation of pwd that replaces your $HOME with a prefix such as ~ or something else"
23+
importenv: "lets you access variables defined in the namespace/scope of another process"
24+
isainfo: "like the SunOS command, it will show info about your architecture, capabilities, bits, etc."
25+
issue: "reads an 'issue' file (/etc/issue or a user-suplied one)"
26+
listen: "listens and announces on a network port, ported from Torgo"
27+
noroot-do: "lets you chroot into a rootfs without root"
28+
printf: "the POSIX printf command"
29+
relf: "a program that shows you the sections of an ELF file and can also guess what the unknown sections contain"
30+
test: "the POSIX test command with some extensions for compatibility with extended shells and their scripts"
31+
walk: "walk command, from Torgo, this command walks a directory based on various rules and it print each file's full path to STDOUT"
32+
wttr: "gets weather info from wttr.in"
33+
homepage:
34+
- "https://github.com/xplshn/a-utils"
35+
- "https://github.com/xplshn/Andes"
36+
license:
37+
- id: "BSD-3-Clause"
38+
url: "https://github.com/xplshn/a-utils/raw/bcabf0cda41cfde837b62ae972f6ef46996f9092/LICENSE"
39+
maintainer:
40+
- "Azathothas (https://github.com/Azathothas)"
41+
note:
42+
- "[DO NOT RUN] (Meant for pkgforge CI Only)"
43+
- "Pre Built Binary Fetched from Upstream. Check/Report @ https://github.com/xplshn/a-utils"
44+
provides:
45+
- "cal"
46+
- "catv"
47+
- "ccat"
48+
- "dial"
49+
- "ed"
50+
- "envsubst"
51+
- "fin"
52+
- "fortune"
53+
- "hpwd"
54+
- "importenv"
55+
- "isainfo"
56+
- "issue"
57+
- "listen"
58+
- "noroot-do"
59+
- "printf"
60+
- "relf"
61+
- "test"
62+
- "walk"
63+
- "wttr"
64+
- "xo"
65+
src_url:
66+
- "https://github.com/xplshn/a-utils"
67+
tag:
68+
- "coreutils"
69+
- "moreutils"
70+
x_exec:
71+
bsys: "host://soar-dl"
72+
host:
73+
- "aarch64-Linux"
74+
- "x86_64-Linux"
75+
shell: "bash"
76+
pkgver: |
77+
curl -qfsSL "https://api.gh.pkgforge.dev/repos/xplshn/a-utils/releases?per_page=100" | jq -r '[.[] | select(.draft == false)] | .[0].tag_name | gsub("\\s+"; "")' | tr -d '"'\''[:space:]'
78+
run: |
79+
#Download
80+
case "$(uname -m)" in
81+
aarch64)
82+
soar dl "https://github.com/xplshn/a-utils@${PKGVER}" --match "linux,arm64" --exclude "amd64,x86,x64,sha256,sha512,bsd,macos,windows" --exclude "tar.gz" -o "${SBUILD_TMPDIR}/${PKG}" --yes
83+
soar dl "https://github.com/xplshn/a-utils@${PKGVER}" --match "linux,arm64,tar.gz" --exclude "amd64,x86,x64,sha256,sha512,bsd,macos,windows" -o "${SBUILD_TMPDIR}/${PKG}.archive" --yes
84+
;;
85+
x86_64)
86+
soar dl "https://github.com/xplshn/a-utils@${PKGVER}" --match "linux,amd64" --exclude "aarch,arm" --exclude "tar.gz" -o "${SBUILD_TMPDIR}/${PKG}" --yes
87+
soar dl "https://github.com/xplshn/a-utils@${PKGVER}" --match "linux,amd64,tar.gz" --exclude "aarch,arm" -o "${SBUILD_TMPDIR}/${PKG}.archive" --yes
88+
;;
89+
esac
90+
#Extract
91+
while E_X=$(find "${SBUILD_TMPDIR}" -type f -exec file -i "{}" + |
92+
grep -Ei "archive|compressed|gzip|x-compress|x-tar" |
93+
grep -iv "application/.*executable" |
94+
cut -d: -f1 | head -n1); [ -n "${E_X}" ]
95+
do
96+
7z e "${E_X}" -o"${SBUILD_TMPDIR}/." -y && {
97+
file -i "${E_X}" | grep -q "application/.*executable" && break
98+
rm -f "${E_X}"
99+
} || break
100+
done
101+
#Copy
102+
find "${SBUILD_TMPDIR}" -maxdepth 1 -type f -exec file -i "{}" \; | grep -Ei "application/.*executable|inode/symlink|text/x-perl|text/.*script" | cut -d":" -f1 | xargs realpath --no-symlinks | xargs -I "{}" rsync -achvL "{}" "${SBUILD_OUTDIR}"

0 commit comments

Comments
 (0)