aboutsummaryrefslogtreecommitdiff
path: root/apk-file
blob: ede71d1f9ba6d9cd21175a158ccf38b6f9063e5f (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh

curl -s "https://pkgs.alpinelinux.org/contents?file=$1" |
awk '
	/<td>/ { print }
	/<td class="(arch|repo)">/ { getline; getline; print }
' |
sed 's/^ *//; s/<[^>]*>//g; s,&#x2F;,/,g' |
paste - - - - - |
grep "${2:-x86}\$"