add section, priority and homepage properties
This commit is contained in:
parent
175943aa4d
commit
dec5faa54b
5
DEBBUILD
5
DEBBUILD
|
@ -1,9 +1,12 @@
|
||||||
#/usr/bin/env bash
|
#/usr/bin/env bash
|
||||||
|
|
||||||
pkgname="makedeb"
|
pkgname="makedeb"
|
||||||
pkgver=0.0.1.0.g34537bd
|
pkgver=0.0.2.0.g175943a
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
|
arch="all"
|
||||||
pkgcommit=""
|
pkgcommit=""
|
||||||
|
section="utils" # https://www.debian.org/doc/debian-policy/ch-archive.html#s-subsections
|
||||||
|
priority="optional" # https://www.debian.org/doc/debian-policy/ch-archive.html#s-priorities
|
||||||
pkgdesc="A painless selfhost git service."
|
pkgdesc="A painless selfhost git service."
|
||||||
url="https://git.leafee98.com/leafee98/makedeb"
|
url="https://git.leafee98.com/leafee98/makedeb"
|
||||||
maintainer="Leafee98 <me@leafee98.com>"
|
maintainer="Leafee98 <me@leafee98.com>"
|
||||||
|
|
|
@ -22,6 +22,8 @@ Every string in array `source` should be like `<actual_file_name>::<download_url
|
||||||
- `pkgver`: package's version, if need to extract version from source, use function `pkgver`
|
- `pkgver`: package's version, if need to extract version from source, use function `pkgver`
|
||||||
- `pkgrel`: debian package reference, it should increase by one every build
|
- `pkgrel`: debian package reference, it should increase by one every build
|
||||||
- `pkgdesc`: package's description
|
- `pkgdesc`: package's description
|
||||||
|
- `section`: default `misc` if not specified
|
||||||
|
- `priority`: default `optional` if not specified
|
||||||
- `url`: packages upstream url
|
- `url`: packages upstream url
|
||||||
- `maintainer`: maintainer's contect information
|
- `maintainer`: maintainer's contect information
|
||||||
|
|
||||||
|
|
20
makedeb
20
makedeb
|
@ -75,14 +75,18 @@ function debian_control {
|
||||||
local install_size="$(du --block-size=1K --summarize ${pkgdir} | cut -d $'\t' -f 1)"
|
local install_size="$(du --block-size=1K --summarize ${pkgdir} | cut -d $'\t' -f 1)"
|
||||||
local fv="$(get_full_version)"
|
local fv="$(get_full_version)"
|
||||||
|
|
||||||
cat << EOF | envsubst
|
echo "Package: ${pkgname}"
|
||||||
Package: ${pkgname}
|
echo "Version: ${fv}"
|
||||||
Version: ${fv}
|
echo "Architecture: ${arch}"
|
||||||
Architecture: all
|
echo "Maintainer: ${maintainer}"
|
||||||
Maintainer: ${maintainer}
|
echo "Installed-Size: ${install_size}"
|
||||||
Installed-Size: ${install_size}
|
echo "Homepage: ${url}"
|
||||||
Description: ${pkgdesc}
|
|
||||||
EOF
|
[[ -n "${section:=misc}" ]] && echo "Section: ${section}"
|
||||||
|
[[ -n "${priority:=optional}" ]] && echo "Priority: ${priority}"
|
||||||
|
|
||||||
|
echo "Description: ${pkgdesc}"
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function generate_deb {
|
function generate_deb {
|
||||||
|
|
Loading…
Reference in a new issue