Last active
February 21, 2017 19:51
-
-
Save patriciogonzalezvivo/7818a25f965bcb944fd15cd768b55013 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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