$2=="all" { $2="amd64" } $2=="amd64" { sbuild="sbuild -A" } $2!="amd64" { sbuild="sbuild" } $2=="armhf" { universe="deb\\ http://localhost:9999/ubuntu-ports\\ "$1"\\ universe" } $2!="armhf" { universe="deb\\ http://localhost:9999/ubuntu\\ "$1"\\ universe" } backports="" resolver="" ($1=="bionic" || $1=="focal") && $2!="armhf" { backports="deb\\ http://localhost:9999/ubuntu\\ "$1"-backports\\ main\\ universe" } ($1=="bionic" || $1=="focal") && $2=="armhf" { backports="deb\\ http://localhost:9999/ubuntu-ports\\ "$1"-backports\\ main\\ universe" } $1=="buster" { backports="deb\\ http://localhost:9999/debian\\ "$1"-backports\\ main" } backports!="" { resolver="aptitude" } backports=="" { resolver="apt" } { cmd = "ubuntu-distro-info --all | grep "$1 cmd | getline result if ( length(result) == 0 ) { universe="\"\"" component="main" } else { component="universe" } print "tsp sh -c \""sbuild" --dist="$1" --arch="$2" --bd-uninstallable-explainer=apt --build-dep-resolver="resolver" --no-run-lintian --extra-repository="backports" --extra-repository="universe" --extra-repository=deb\\ file:/afs/.sur5r.net/debian/suckless-tools\\ "$1"\\ "component" --extra-repository-key=/etc/apt/trusted.gpg.d/sur5r-keyring.gpg "$3"\"" }