fetch.sh (2977B)
- #!/bin/sh
- URLS="
- https://hacktivis.me/releases/utils-std/utils-std-0.0.2.tar.gz
- https://hacktivis.me/releases/utils-std/utils-std-0.0.2.tar.gz.sign
- https://frippery.org/make/pdpmake-2.0.3.tgz
- https://gitlab.com/bzip2/bzip2/-/archive/bzip2-1.0.8/bzip2-bzip2-1.0.8.tar.gz
- https://zlib.net/zlib-1.3.1.tar.gz
- https://www.zlib.net/pigz/pigz-2.8.tar.gz
- https://ftp.gnu.org/gnu/make/make-4.4.1.tar.gz
- https://downloads.sourceforge.net/heirloom/heirloom/070715/heirloom-070715.tar.bz2
- https://downloads.sourceforge.net/project/heirloom/heirloom-devtools/070527/heirloom-devtools-070527.tar.bz2
- https://www.lua.org/ftp/lua-5.4.6.tar.gz
- https://www.kernel.org/pub/linux/utils/net/iproute2/iproute2-6.13.0.tar.gz
- https://bearssl.org/bearssl-0.6.tar.gz
- https://curl.se/tiny/tiny-curl-8.4.0.tar.gz
- https://curl.haxx.se/ca/cacert-2024-11-26.pem
- https://git.kernel.org/pub/scm/git/git.git/snapshot/git-2.48.1.tar.gz
- https://mirrors.edge.kernel.org/pub/linux/kernel/people/tytso/e2fsprogs/v1.47.2/e2fsprogs-1.47.2.tar.gz
- https://muon.build/releases/v0.4.0/muon-v0.4.0.tar.gz
- https://c9x.me/compile/release/qbe-1.2.tar.xz
- "
- WORKDIR="$(dirname "$0")"
- fetch_forge() {
- base=$1
- name=$2
- ver=$3
- test -e "${name}-${ver}.tar.gz" || curl ${CURL_OPTS} -o "${name}-${ver}.tar.gz" "${base}/${ver}.tar.gz"
- }
- . "${WORKDIR}/common.sh"
- set -ex
- mkdir -p "${WORKDIR}/distfiles"
- cd "${WORKDIR}/distfiles"
- CURL_OPTS="-L --fail"
- for url in $URLS
- do
- file="$(basename "$url")"
- test -e "$file" || curl ${CURL_OPTS} -o "$file" "$url"
- done
- for arch in ${ALPINE_ARCHES}
- do
- for apk in $APKS_main
- do
- test -e "$apk.$arch" || curl ${CURL_OPTS} -o "$apk.${arch}" "${ALPINE_MIRROR}/${ALPINE_BRANCH}/main/${arch}/${apk}"
- done
- for apk in $APKS_testing
- do
- test -e "$apk.$arch" || curl ${CURL_OPTS} -o "$apk.${arch}" "${ALPINE_MIRROR}/${ALPINE_BRANCH}/testing/${arch}/${apk}"
- done
- done
- test -e lanodan-2025.pub || curl ${CURL_OPTS} -o lanodan-2025.pub https://hacktivis.me/releases/signify/2025.pub
- # Only has ./CVS and .travis-ci.yml removed compared to Github autogenerated tarball
- #test -e om4-6.7.tar.gz || curl ${CURL_OPTS} -o om4-6.7.tar.gz https://github.com/ibara/m4/releases/download/om4-6.7/om4-6.7.tar.gz
- fetch_forge https://github.com/onetrueawk/awk/archive nawk 20250116
- fetch_forge https://github.com/ibara/oksh/archive/refs/tags oksh oksh-7.6
- fetch_forge https://github.com/ibara/yacc/archive/refs/tags yacc oyacc-6.6
- fetch_forge https://github.com/pkgconf/pkgconf/archive/refs/tags pkgconf pkgconf-2.4.3
- fetch_forge https://github.com/pts/muxzcat/archive/refs/tags muxzcat v2b
- # suckless.org doesn't provides snapshots of sbase (yet?)
- test -e sbase-b30fb568.tar.gz || curl ${CURL_OPTS} -o sbase-b30fb568.tar.gz https://git.sr.ht/~mcf/sbase/archive/b30fb56804bfed69b45ef0e944d2e029e4d26258.tar.gz
- if command -v signify >/dev/null; then
- signify -V -p lanodan-2025.pub -x utils-std-0.0.2.tar.gz.sign -m utils-std-0.0.2.tar.gz
- fi
- cd -
- sha512sum -c distfiles.SHA512SUM