From fe7f2753c95871c5841c092db0d9f4fb7780b214 Mon Sep 17 00:00:00 2001 From: "thorsten.spille" Date: Fri, 9 Feb 2024 22:41:53 +0100 Subject: [PATCH] add build-package --- build-package | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 build-package diff --git a/build-package b/build-package new file mode 100644 index 0000000..354d2bc --- /dev/null +++ b/build-package @@ -0,0 +1,19 @@ +#!/bin/bash +version=$1 +package=bashclub-zsync + +deb_package=${package}_${version}_all.deb + +echo "$(date) creating DEBIBAN/control..." +cat << EOF > $package/DEBIAN/control +Package: $package +Version: $version +Architecture: all +Essential: no +Priority: optional +Depends: openssh-server, proxmox-ve, zfs-auto-snapshot, zfsutils-linux +Maintainer: bashclub +Description: The deb package for $package $version maintained from bashclub. +EOF + +dpkg-deb --build $package $deb_package