#!/usr/bin/env bash # Copyright (C) 2024 Umorpha Systems # SPDX-License-Identifier: AGPL-3.0-or-later set -e [[ $# == 1 ]] srcinfo="$1" pkgfiles=($(awk ' BEGIN { arch="x86_64" } /pkgver =/ { pkgver=$3 } /pkgrel =/ { pkgrel=$3 } /arch = any/ { arch=$3 } /pkgname =/ { print $3 "-" pkgver "-" pkgrel "-" arch ".pkg.tar.zst" } ' <"$srcinfo")) echo "${pkgfiles[*]/#/'pkg/'} &: ${srcinfo}" echo ' rm -rf -- $(