blob: 912d86abd55f7fb0c0edb70746c45816f0b49db8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#!/bin/sh
# Search packages by contents
curl -s "https://pkgs.alpinelinux.org/contents?file=$1" |
awk '
/<td>/ { print }
/<td class="(arch|repo)">/ { getline; getline; print }
' |
sed 's/^ *//; s/<[^>]*>//g; s,/,/,g' |
paste - - - - - |
grep "${2:-x86}\$"
|