Skip to content

Instantly share code, notes, and snippets.

@krisgesling
Forked from forslund/build.sh
Created February 1, 2021 23:50
Show Gist options
  • Save krisgesling/ad7f2cbdf7191380699a756eb672835a to your computer and use it in GitHub Desktop.
Save krisgesling/ad7f2cbdf7191380699a756eb672835a to your computer and use it in GitHub Desktop.
Example of Building Mark-2 packages
# General prerequisites:
sudo apt-get install -y debhelper build-essential fakeroot
# Clone package
git clone https://github.com/mycroft-packaging/mycroft-gui-mark-2 -b focal
cd mycroft-gui-mark-2
# Clone source
git clone https://github.com/mycroftai/mycroft-gui-mark-2
cp -r debian mycroft-gui-mark-2
cd mycroft-gui-mark-2
# Install build dependencies
sudo apt-get build-dep -y .
# Create reference zip
git archive --format=tar --output=mycroft-gui-mark-2_${VERSION}.orig.tar HEAD
gzip mycroft-gui-mark-2_${VERSION}.orig.tar
mv mycroft-gui-mark-2_${VERSION}.orig.tar.gz ../
# build the package
dpkg-buildpackage -us -uc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment