diff options
author | Jay Freeman <saurik@saurik.com> | 2008-01-04 01:17:50 +0000 |
---|---|---|
committer | Jay Freeman <saurik@saurik.com> | 2008-01-04 01:17:50 +0000 |
commit | 03880b546d794abafd6dab3eed876dbefe06c174 (patch) | |
tree | 42ef9d2fb26b6321a7bda2f8eecb0009471bb3c2 /control.sh | |
parent | 8f3b67fe1123828377d340922a1aca2d4c4c1989 (diff) |
Revision numbers on packages now being bumped, moved files around in Apple packages to the correct folders (adjusting for conflicts), added numerous Java packages, and fixed dependencies on findutils, coreutils, inetutils, and gnupg.
git-svn-id: http://svn.telesphoreo.org/trunk@11 514c082c-b64e-11dc-b46d-3d985efe055d
Diffstat (limited to 'control.sh')
-rwxr-xr-x | control.sh | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/control.sh b/control.sh index 394b9bd43..2d044e9f0 100755 --- a/control.sh +++ b/control.sh @@ -7,6 +7,10 @@ shift export PKG_BASE=$(realpath "$(dirname "$0")") . "${PKG_BASE}/helper.sh" +if [[ -n $2 ]]; then + PKG_VRSN=$2 +fi + cat <<EOF Package: ${PKG_NAME} Essential: $([[ ${PKG_PRIO} == required ]] && echo yes || echo no) @@ -32,9 +36,16 @@ fi cat <<EOF Maintainer: $(cat "${PKG_DATA}/_metadata/maintainer") Architecture: darwin-arm -Version: ${PKG_VRSN} EOF +echo -n "Version: ${PKG_VRSN}" + +if [[ $1 == status || $1 == available ]]; then + echo "-0" +else + echo +fi + if [[ $1 == available ]]; then cat <<EOF Size: $(find "${PKG_DEST}" -type f -exec cat {} \; | gzip -c | wc -c | cut -d $'\t' -f 1) |