Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
// Resources
// - http://blog.packagecloud.io/debian/debuild/packaging/2015/06/08/buildling-deb-packages-with-debuild/
// - https://linuxconfig.org/easy-way-to-create-a-debian-package-and-local-package-repository
// - http://santi-bassett.blogspot.com/2014/07/how-to-create-debian-package.html
sudo apt-get install dh-make build-essential
sudo apt-get install devscripts fakeroot debootstrap pbuilder autotools-dev
# Create the packaging skeleton (debian/*)
# dh_make -s --indep --createorig
dh_make \
--native \
--single \
--packagename glslviewer-1.1 \
--email patriciogonzalezvivo@gmail.com
# Remove make calls
grep -v makefile debian/rules > debian/rules.new
mv debian/rules.new debian/rules
# debian/install must contain the list of scripts to install
# as well as the target directory
echo $SOURCEBIN usr/bin > debian/install
# Remove the example files
rm debian/*.ex
debuild -us -uc
cd ..
sudo dpkg -i glslviewer-1.1.deb
## then in new version do
dch -v 1.2
debuild -us -uc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.