This repository contains the Debian packaging configuration (debian/ directory) for Blocky.
Since this repository only contains the packaging definitions, you need to fetch the upstream source code manually to build the package on your local machine.
Install the necessary build tools and dependencies:
sudo apt update
sudo apt install build-essential devscripts debhelper golang-go git-
Clone this packaging repository:
git clone https://github.com/crim50n/blocky-deb.git
-
Determine the target version: Read the version from the changelog:
cd blocky-deb VERSION=$(dpkg-parsechangelog -S Version | sed -e 's/-[^-]*$//') cd .. echo "Preparing to build version: $VERSION"
-
Fetch Upstream Source: Clone the upstream repository and checkout the tag corresponding to the target version.
# Clone specific tag git clone --branch v$VERSION --depth 1 https://github.com/0xERR0R/blocky.git blocky-$VERSION
-
Apply Packaging Configuration: Copy the
debiandirectory from this repository into the upstream source tree.cp -r blocky-deb/debian blocky-$VERSION/ -
Build the Package: Navigate into the source directory and start the build process.
cd blocky-$VERSION dpkg-buildpackage -us -uc -b
Once finished, the built
.debpackage will be located in the parent directory.