mirror of
https://codeberg.org/kiss-community/repo
synced 2024-12-21 14:50:07 -07:00
docs: update
This commit is contained in:
parent
c21262469b
commit
f76fc18d9b
10
README.md
10
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)
|
||||
|
||||
<!-- vim-markdown-toc -->
|
||||
|
||||
@ -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
|
||||
```
|
||||
|
7
puke
7
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() {
|
||||
|
@ -1 +1 @@
|
||||
1.2.11
|
||||
1.2.11 1
|
||||
|
Loading…
Reference in New Issue
Block a user