From f76fc18d9b182416a5981d5152a65a29fbc3920e Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Thu, 9 May 2019 11:52:34 +0300 Subject: [PATCH] docs: update --- README.md | 10 +++++++++- puke | 7 ++++--- repo/zlib/version | 2 +- 3 files changed, 14 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 5858b64c..4bf296ac 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,6 @@ zlib/ # Package name. # Optional files. ├─ post_install # The script to run after install. -├─ release # Force a package update for the same version. ┘ ``` @@ -43,6 +42,7 @@ done < depends * [`manifest`](#manifest) * [`sources`](#sources) * [`depends`](#depends) +* [`version`](#version) @@ -100,3 +100,11 @@ zlib binutils openssl ``` + +## `version` + +The `version` file contains the package's version as well as its release number. The format of this file is `version release`. The `release` portion allows a package upgrade without the modification of the version number. + +``` +1.2.11 1 +``` diff --git a/puke b/puke index 7f342bd2..1da3ad6c 100755 --- a/puke +++ b/puke @@ -23,8 +23,9 @@ pkg_info() { [ -f depends ] || die "Depends file not found." [ -f sources ] || die "Sources file not found." - while read -r line; do version=$line; done < version + read -r version release < version name=$1 + pkg=$name-$version-$release } pkg_depends() { @@ -71,7 +72,7 @@ pkg_extract() { } pkg_build() { - log "Building $name-$version" + log "Building $pkg" cd "$build_dir" set -e @@ -79,7 +80,7 @@ pkg_build() { set +e cd - - log "Sucessfully built $name-$version" + log "Sucessfully built $pkg" } pkg_manifest() { diff --git a/repo/zlib/version b/repo/zlib/version index c1147005..90288038 100644 --- a/repo/zlib/version +++ b/repo/zlib/version @@ -1 +1 @@ -1.2.11 +1.2.11 1