Skip to content

Instantly share code, notes, and snippets.

@forslund
Last active February 1, 2021 23:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save forslund/9967dc5a90f0818b802a64d65a924a4d to your computer and use it in GitHub Desktop.
Save forslund/9967dc5a90f0818b802a64d65a924a4d 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