#!/bin/sh # SlackBuild for containers-common — unraid-podman # # Builds a Slackware-compatible .txz package for containers-common, pinned to a specific # upstream release from https://github.com/containers/common. # See docs/ARCHITECTURE.md section 5 (Paketmanagement) and packages/README.md. # # STATUS: placeholder — not yet implemented. set -eu PRGNAM=containers-common VERSION=${VERSION:-0.0.0} # TODO: pin exact upstream version ARCH=${ARCH:-x86_64} BUILD=${BUILD:-1} TAG=${TAG:-_unraidpodman} CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} # TODO: # 1. Fetch source tarball for $PRGNAM $VERSION from # https://github.com/containers/common # 2. Apply patches from packages/containers-common/patches/, if any # 3. Build (Go build for Go-based components, make for C-based components) # 4. Install into $PKG following Slackware package filesystem layout # 5. Copy packages/containers-common/slack-desc into $PKG/install/slack-desc # 6. makepkg to produce $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.txz echo "TODO: implement containers-common.SlackBuild" exit 1