#!/bin/bash shopt -s extglob nullglob export PKG_NAME=$1 shift export PKG_BASE=$(realpath "$(dirname "$0")") . "${PKG_BASE}/helper.sh" if [[ -n $2 ]]; then PKG_VRSN=$2 fi cat <= $(cat "${ver}"))" fi done if [[ -e ${PKG_DATA}/_metadata/depends ]]; then if [[ ${comma+@} == @ ]]; then echo -n "," else echo -n "Depends:" comma= fi echo -n " $(cat "${PKG_DATA}/_metadata/depends")" fi if [[ ${comma+@} == @ ]]; then echo fi if [[ -e ${PKG_DATA}/_metadata/replaces ]]; then cat <