Compare commits
No commits in common. "dec5faa54b0c4204880c79ee8390519a9102e2a5" and "fc8dd81f009e43657b792853ea4a1a3d90cd69e4" have entirely different histories.
dec5faa54b
...
fc8dd81f00
5
DEBBUILD
5
DEBBUILD
|
@ -1,12 +1,9 @@
|
|||
#/usr/bin/env bash
|
||||
|
||||
pkgname="makedeb"
|
||||
pkgver=0.0.2.0.g175943a
|
||||
pkgver=0.0.1.0.g34537bd
|
||||
pkgrel=1
|
||||
arch="all"
|
||||
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."
|
||||
url="https://git.leafee98.com/leafee98/makedeb"
|
||||
maintainer="Leafee98 <me@leafee98.com>"
|
||||
|
|
|
@ -22,8 +22,6 @@ 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`
|
||||
- `pkgrel`: debian package reference, it should increase by one every build
|
||||
- `pkgdesc`: package's description
|
||||
- `section`: default `misc` if not specified
|
||||
- `priority`: default `optional` if not specified
|
||||
- `url`: packages upstream url
|
||||
- `maintainer`: maintainer's contect information
|
||||
|
||||
|
|
24
makedeb
24
makedeb
|
@ -75,18 +75,14 @@ function debian_control {
|
|||
local install_size="$(du --block-size=1K --summarize ${pkgdir} | cut -d $'\t' -f 1)"
|
||||
local fv="$(get_full_version)"
|
||||
|
||||
echo "Package: ${pkgname}"
|
||||
echo "Version: ${fv}"
|
||||
echo "Architecture: ${arch}"
|
||||
echo "Maintainer: ${maintainer}"
|
||||
echo "Installed-Size: ${install_size}"
|
||||
echo "Homepage: ${url}"
|
||||
|
||||
[[ -n "${section:=misc}" ]] && echo "Section: ${section}"
|
||||
[[ -n "${priority:=optional}" ]] && echo "Priority: ${priority}"
|
||||
|
||||
echo "Description: ${pkgdesc}"
|
||||
|
||||
cat << EOF | envsubst
|
||||
Package: ${pkgname}
|
||||
Version: ${fv}
|
||||
Architecture: all
|
||||
Maintainer: ${maintainer}
|
||||
Installed-Size: ${install_size}
|
||||
Description: ${pkgdesc}
|
||||
EOF
|
||||
}
|
||||
|
||||
function generate_deb {
|
||||
|
@ -97,9 +93,9 @@ function generate_deb {
|
|||
local control_tgz="${tmpdir}/control.tar.gz"
|
||||
local debian_binary="${tmpdir}/debian-binary"
|
||||
|
||||
tar --gzip --exclude="./DEBIAN" -C "${pkgdir}" -cf "${data_tgz}" .
|
||||
tar --exclude="./DEBIAN" -C "${pkgdir}" -cf "${data_tgz}" .
|
||||
|
||||
tar --gzip -C "${pkgdir}/DEBIAN" -cf "${control_tgz}" .
|
||||
tar -C "${pkgdir}/DEBIAN" -cf "${control_tgz}" .
|
||||
|
||||
echo 2.0 > "${debian_binary}"
|
||||
|
||||
|
|
Loading…
Reference in a new issue