From 1ababda27ac03e3b9ad8aeb824658936df68d8c5 Mon Sep 17 00:00:00 2001 From: hwspeedy Date: Sun, 3 Mar 2024 05:33:32 +0100 Subject: PACKAGING - debian/redhat source package fixing - add script to create debian source package tools/create_debian_source.sh --- tools/create_debian_source.sh | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100755 tools/create_debian_source.sh (limited to 'tools') diff --git a/tools/create_debian_source.sh b/tools/create_debian_source.sh new file mode 100755 index 00000000..a267d1f9 --- /dev/null +++ b/tools/create_debian_source.sh @@ -0,0 +1,38 @@ +#!/bin/bash +VERSION=2.0.12 +cd .. +rm -rf build +mkdir build +cd build +cmake .. +make package_source +tar -xzf hardinfo-$VERSION.tar.gz +cd hardinfo-$VERSION +debmake +tar -czf ../hardinfo-$VERSION.debian.tar.gz debian +cd .. +mv hardinfo-$VERSION.tar.gz hardinfo-$VERSION.orig.tar.gz + +echo "Format: 3.0 (quilt) +Source: hardinfo +Binary: hardinfo +Architecture: any +Version: $VERSION +Maintainer: hwspeedy +Homepage: https://hardinfo2.org +Standards-Version: 4.1.3 +Vcs-Browser: https://salsa.debian.org/hwspeedy/hardinfo2 +Vcs-Git: https://salsa.debian.org/hwspeedy/hardinfo2.git +Build-Depends: cmake, debhelper (>= 11), libjson-glib-dev, zlib1g-dev, libsoup2.4-dev, libgtk-3-dev +Package-List: + hardinfo deb x11 optional arch=any +Checksums-Sha1:" >./hardinfo-$VERSION.dsc +sha1sum hardinfo-$VERSION.*.tar.gz >>./hardinfo-$VERSION.dsc +echo "Checksums-Sha256:">>./hardinfo-$VERSION.dsc +sha256sum hardinfo-$VERSION.*.tar.gz >>./hardinfo-$VERSION.dsc +echo "Files:">>./hardinfo-$VERSION.dsc +md5sum hardinfo-$VERSION.*.tar.gz >>./hardinfo-$VERSION.dsc + +echo "Debian Source Package Files ready in build:" +ls -l hardinfo-$VERSION.*.tar.gz +ls -l hardinfo-$VERSION.dsc -- cgit v1.2.3