Dev/Build Documentation/generic-package/easy
The build process of building any of the packages by Kicksecure developers is always very similar. This very wiki page explain how to build package generic-package
. By replacing the name of the package generic-package with the name of any other package you might be interested in building, the other package would be build. You have two options.
- A) Instructions on this page about how to build the generic-package package from source code without verifying software signatures for simplicity.
OR
Contents
Get Build Dependencies[edit]
Copy or share this direct link!
Click = Copy
Copied to clipboard!
https://www.kicksecure.com/wiki/Dev%2FBuild_Documentation%2Fgeneric-package%2Feasy?stableid=60787#Get_Build_Dependencies
Click below ↴ = Copy to Clipboard
Click = Copy
Copied to clipboard!
[[Dev%2FBuild_Documentation%2Fgeneric-package%2Feasy#Get_Build_Dependencies|Get Build Dependencies]]
Copy as Wikitext
Click = Copy
Copied to clipboard!
[Get Build Dependencies](https://www.kicksecure.com/wiki/Dev%2FBuild_Documentation%2Fgeneric-package%2Feasy?stableid=60787#Get_Build_Dependencies)
for Discourse, reddit, GitHub
Click = Copy
Copied to clipboard!
[Get Build Dependencies](https://www.kicksecure.com/wiki/Dev%2FBuild_Documentation%2Fgeneric-package%2Feasy?stableid=60787#Get_Build_Dependencies)
Copy as Markdown
Click = Copy
Copied to clipboard!
[url=https://www.kicksecure.com/wiki/Dev%2FBuild_Documentation%2Fgeneric-package%2Feasy?stableid=60787#Get_Build_Dependencies]Get Build Dependencies[/url]
Copy as phpBB
Click below ↴ = Open social URL with share data
We don't use embedded scripts
This share button is completely self-hosted by this webserver. No scripts from any of the social networks are embedded on this webserver. See also
Social Share Button.
Update your package lists.
Click = Copy Copied to clipboard! sudo apt update
Install from Debian repository.
Click = Copy Copied to clipboard! sudo apt install build-essential devscripts git
Change Directory to Build Folder[edit]
Copy or share this direct link!
Click = Copy
Copied to clipboard!
https://www.kicksecure.com/wiki/Dev%2FBuild_Documentation%2Fgeneric-package%2Feasy?stableid=60787#Change_Directory_to_Build_Folder
Click below ↴ = Copy to Clipboard
Click = Copy
Copied to clipboard!
[[Dev%2FBuild_Documentation%2Fgeneric-package%2Feasy#Change_Directory_to_Build_Folder|Change Directory to Build Folder]]
Copy as Wikitext
Click = Copy
Copied to clipboard!
[Change Directory to Build Folder](https://www.kicksecure.com/wiki/Dev%2FBuild_Documentation%2Fgeneric-package%2Feasy?stableid=60787#Change_Directory_to_Build_Folder)
for Discourse, reddit, GitHub
Click = Copy
Copied to clipboard!
[Change Directory to Build Folder](https://www.kicksecure.com/wiki/Dev%2FBuild_Documentation%2Fgeneric-package%2Feasy?stableid=60787#Change_Directory_to_Build_Folder)
Copy as Markdown
Click = Copy
Copied to clipboard!
[url=https://www.kicksecure.com/wiki/Dev%2FBuild_Documentation%2Fgeneric-package%2Feasy?stableid=60787#Change_Directory_to_Build_Folder]Change Directory to Build Folder[/url]
Copy as phpBB
Click below ↴ = Open social URL with share data
We don't use embedded scripts
This share button is completely self-hosted by this webserver. No scripts from any of the social networks are embedded on this webserver. See also
Social Share Button.
This chapter is recommended for better usability, but is not strictly required. [1]
Create folder ~/generic-package-build
.
Click = Copy Copied to clipboard! mkdir -p ~/generic-package-build
Change directory to folder ~/generic-package-build
.
Click = Copy Copied to clipboard! cd ~/generic-package-build
Get the Source Code[edit]
Copy or share this direct link!
Click = Copy
Copied to clipboard!
https://www.kicksecure.com/wiki/Dev%2FBuild_Documentation%2Fgeneric-package%2Feasy?stableid=60787#Get_the_Source_Code
Click below ↴ = Copy to Clipboard
Click = Copy
Copied to clipboard!
[[Dev%2FBuild_Documentation%2Fgeneric-package%2Feasy#Get_the_Source_Code|Get the Source Code]]
Copy as Wikitext
Click = Copy
Copied to clipboard!
[Get the Source Code](https://www.kicksecure.com/wiki/Dev%2FBuild_Documentation%2Fgeneric-package%2Feasy?stableid=60787#Get_the_Source_Code)
for Discourse, reddit, GitHub
Click = Copy
Copied to clipboard!
[Get the Source Code](https://www.kicksecure.com/wiki/Dev%2FBuild_Documentation%2Fgeneric-package%2Feasy?stableid=60787#Get_the_Source_Code)
Copy as Markdown
Click = Copy
Copied to clipboard!
[url=https://www.kicksecure.com/wiki/Dev%2FBuild_Documentation%2Fgeneric-package%2Feasy?stableid=60787#Get_the_Source_Code]Get the Source Code[/url]
Copy as phpBB
Click below ↴ = Open social URL with share data
We don't use embedded scripts
This share button is completely self-hosted by this webserver. No scripts from any of the social networks are embedded on this webserver. See also
Social Share Button.
Get the the package's source code.
Click = Copy Copied to clipboard! git clone https://github.com/Kicksecure/generic-package.git
Remember it is Kicksecure, not kicksecure! If you are prompted for a username for github, it means you have mistyped the web address.
Change Directory to Source Code Folder[edit]
Copy or share this direct link!
Click = Copy
Copied to clipboard!
https://www.kicksecure.com/wiki/Dev%2FBuild_Documentation%2Fgeneric-package%2Feasy?stableid=60787#Change_Directory_to_Source_Code_Folder
Click below ↴ = Copy to Clipboard
Click = Copy
Copied to clipboard!
[[Dev%2FBuild_Documentation%2Fgeneric-package%2Feasy#Change_Directory_to_Source_Code_Folder|Change Directory to Source Code Folder]]
Copy as Wikitext
Click = Copy
Copied to clipboard!
[Change Directory to Source Code Folder](https://www.kicksecure.com/wiki/Dev%2FBuild_Documentation%2Fgeneric-package%2Feasy?stableid=60787#Change_Directory_to_Source_Code_Folder)
for Discourse, reddit, GitHub
Click = Copy
Copied to clipboard!
[Change Directory to Source Code Folder](https://www.kicksecure.com/wiki/Dev%2FBuild_Documentation%2Fgeneric-package%2Feasy?stableid=60787#Change_Directory_to_Source_Code_Folder)
Copy as Markdown
Click = Copy
Copied to clipboard!
[url=https://www.kicksecure.com/wiki/Dev%2FBuild_Documentation%2Fgeneric-package%2Feasy?stableid=60787#Change_Directory_to_Source_Code_Folder]Change Directory to Source Code Folder[/url]
Copy as phpBB
Click below ↴ = Open social URL with share data
We don't use embedded scripts
This share button is completely self-hosted by this webserver. No scripts from any of the social networks are embedded on this webserver. See also
Social Share Button.
Get into the package's source code folder because later on package build commands are expected to be run from the root of the source folder.
Click = Copy Copied to clipboard! cd generic-package
Choose Version[edit]
Copy or share this direct link!
Click = Copy
Copied to clipboard!
https://www.kicksecure.com/wiki/Dev%2FBuild_Documentation%2Fgeneric-package%2Feasy?stableid=60787#Choose_Version
Click below ↴ = Copy to Clipboard
Click = Copy
Copied to clipboard!
[[Dev%2FBuild_Documentation%2Fgeneric-package%2Feasy#Choose_Version|Choose Version]]
Copy as Wikitext
Click = Copy
Copied to clipboard!
[Choose Version](https://www.kicksecure.com/wiki/Dev%2FBuild_Documentation%2Fgeneric-package%2Feasy?stableid=60787#Choose_Version)
for Discourse, reddit, GitHub
Click = Copy
Copied to clipboard!
[Choose Version](https://www.kicksecure.com/wiki/Dev%2FBuild_Documentation%2Fgeneric-package%2Feasy?stableid=60787#Choose_Version)
Copy as Markdown
Click = Copy
Copied to clipboard!
[url=https://www.kicksecure.com/wiki/Dev%2FBuild_Documentation%2Fgeneric-package%2Feasy?stableid=60787#Choose_Version]Choose Version[/url]
Copy as phpBB
Click below ↴ = Open social URL with share data
We don't use embedded scripts
This share button is completely self-hosted by this webserver. No scripts from any of the social networks are embedded on this webserver. See also
Social Share Button.
This is optional in case you want to build from master branch.
Do not use version 0.1
but a sensible version number.
Click = Copy Copied to clipboard! git checkout 0.1
Build the Package[edit]
Copy or share this direct link!
Click = Copy
Copied to clipboard!
https://www.kicksecure.com/wiki/Dev%2FBuild_Documentation%2Fgeneric-package%2Feasy?stableid=60787#Build_the_Package
Click below ↴ = Copy to Clipboard
Click = Copy
Copied to clipboard!
[[Dev%2FBuild_Documentation%2Fgeneric-package%2Feasy#Build_the_Package|Build the Package]]
Copy as Wikitext
Click = Copy
Copied to clipboard!
[Build the Package](https://www.kicksecure.com/wiki/Dev%2FBuild_Documentation%2Fgeneric-package%2Feasy?stableid=60787#Build_the_Package)
for Discourse, reddit, GitHub
Click = Copy
Copied to clipboard!
[Build the Package](https://www.kicksecure.com/wiki/Dev%2FBuild_Documentation%2Fgeneric-package%2Feasy?stableid=60787#Build_the_Package)
Copy as Markdown
Click = Copy
Copied to clipboard!
[url=https://www.kicksecure.com/wiki/Dev%2FBuild_Documentation%2Fgeneric-package%2Feasy?stableid=60787#Build_the_Package]Build the Package[/url]
Copy as phpBB
Click below ↴ = Open social URL with share data
We don't use embedded scripts
This share button is completely self-hosted by this webserver. No scripts from any of the social networks are embedded on this webserver. See also
Social Share Button.
Click = Copy Copied to clipboard! dpkg-buildpackage -b
Build Result[edit]
Copy or share this direct link!
Click = Copy
Copied to clipboard!
https://www.kicksecure.com/wiki/Dev%2FBuild_Documentation%2Fgeneric-package%2Feasy?stableid=60787#Build_Result
Click below ↴ = Copy to Clipboard
Click = Copy
Copied to clipboard!
[[Dev%2FBuild_Documentation%2Fgeneric-package%2Feasy#Build_Result|Build Result]]
Copy as Wikitext
Click = Copy
Copied to clipboard!
[Build Result](https://www.kicksecure.com/wiki/Dev%2FBuild_Documentation%2Fgeneric-package%2Feasy?stableid=60787#Build_Result)
for Discourse, reddit, GitHub
Click = Copy
Copied to clipboard!
[Build Result](https://www.kicksecure.com/wiki/Dev%2FBuild_Documentation%2Fgeneric-package%2Feasy?stableid=60787#Build_Result)
Copy as Markdown
Click = Copy
Copied to clipboard!
[url=https://www.kicksecure.com/wiki/Dev%2FBuild_Documentation%2Fgeneric-package%2Feasy?stableid=60787#Build_Result]Build Result[/url]
Copy as phpBB
Click below ↴ = Open social URL with share data
We don't use embedded scripts
This share button is completely self-hosted by this webserver. No scripts from any of the social networks are embedded on this webserver. See also
Social Share Button.
When a package is build using dpkg-buildpackage
the resulting packages will be created in the parent folder. I.e. in this case in the ~/generic-package-build
folder.
Click = Copy Copied to clipboard! ls ../
Should show something like this.
generic-package generic-package0.1-1_amd64.buildinfo generic-package0.1-1_amd64.changes
Installation[edit]
Copy or share this direct link!
Click = Copy
Copied to clipboard!
https://www.kicksecure.com/wiki/Dev%2FBuild_Documentation%2Fgeneric-package%2Feasy?stableid=60787#Installation
Click below ↴ = Copy to Clipboard
Click = Copy
Copied to clipboard!
[[Dev%2FBuild_Documentation%2Fgeneric-package%2Feasy#Installation|Installation]]
Copy as Wikitext
Click = Copy
Copied to clipboard!
[Installation](https://www.kicksecure.com/wiki/Dev%2FBuild_Documentation%2Fgeneric-package%2Feasy?stableid=60787#Installation)
for Discourse, reddit, GitHub
Click = Copy
Copied to clipboard!
[Installation](https://www.kicksecure.com/wiki/Dev%2FBuild_Documentation%2Fgeneric-package%2Feasy?stableid=60787#Installation)
Copy as Markdown
Click = Copy
Copied to clipboard!
[url=https://www.kicksecure.com/wiki/Dev%2FBuild_Documentation%2Fgeneric-package%2Feasy?stableid=60787#Installation]Installation[/url]
Copy as phpBB
Click below ↴ = Open social URL with share data
We don't use embedded scripts
This share button is completely self-hosted by this webserver. No scripts from any of the social networks are embedded on this webserver. See also
Social Share Button.
Click = Copy Copied to clipboard! sudo dpkg -i ../generic-package_0.1-1_amd64.deb
Clean Up[edit]
Copy or share this direct link!
Click = Copy
Copied to clipboard!
https://www.kicksecure.com/wiki/Dev%2FBuild_Documentation%2Fgeneric-package%2Feasy?stableid=60787#Clean_Up
Click below ↴ = Copy to Clipboard
Click = Copy
Copied to clipboard!
[[Dev%2FBuild_Documentation%2Fgeneric-package%2Feasy#Clean_Up|Clean Up]]
Copy as Wikitext
Click = Copy
Copied to clipboard!
[Clean Up](https://www.kicksecure.com/wiki/Dev%2FBuild_Documentation%2Fgeneric-package%2Feasy?stableid=60787#Clean_Up)
for Discourse, reddit, GitHub
Click = Copy
Copied to clipboard!
[Clean Up](https://www.kicksecure.com/wiki/Dev%2FBuild_Documentation%2Fgeneric-package%2Feasy?stableid=60787#Clean_Up)
Copy as Markdown
Click = Copy
Copied to clipboard!
[url=https://www.kicksecure.com/wiki/Dev%2FBuild_Documentation%2Fgeneric-package%2Feasy?stableid=60787#Clean_Up]Clean Up[/url]
Copy as phpBB
Click below ↴ = Open social URL with share data
We don't use embedded scripts
This share button is completely self-hosted by this webserver. No scripts from any of the social networks are embedded on this webserver. See also
Social Share Button.
Delete temporary files debhelper files in package source folder as well as debhelper artifacts (.deb file etc.) in parent folder.
1) Show extraneous (temporary files debhelper) files.
Click = Copy Copied to clipboard! git clean -ndff
2) NOTE: Read above output carefully if you added files of your own files to that folder.
If that looks good, actually remove.
Click = Copy Copied to clipboard! git clean -dff
3) Delete debhelper artifacts (.deb file etc.) in parent folder.
TODO: document
Footnotes[edit]
Copy or share this direct link!
Click = Copy
Copied to clipboard!
https://www.kicksecure.com/wiki/Dev%2FBuild_Documentation%2Fgeneric-package%2Feasy?stableid=60787#Footnotes
Click below ↴ = Copy to Clipboard
Click = Copy
Copied to clipboard!
[[Dev%2FBuild_Documentation%2Fgeneric-package%2Feasy#Footnotes|Footnotes]]
Copy as Wikitext
Click = Copy
Copied to clipboard!
[Footnotes](https://www.kicksecure.com/wiki/Dev%2FBuild_Documentation%2Fgeneric-package%2Feasy?stableid=60787#Footnotes)
for Discourse, reddit, GitHub
Click = Copy
Copied to clipboard!
[Footnotes](https://www.kicksecure.com/wiki/Dev%2FBuild_Documentation%2Fgeneric-package%2Feasy?stableid=60787#Footnotes)
Copy as Markdown
Click = Copy
Copied to clipboard!
[url=https://www.kicksecure.com/wiki/Dev%2FBuild_Documentation%2Fgeneric-package%2Feasy?stableid=60787#Footnotes]Footnotes[/url]
Copy as phpBB
Click below ↴ = Open social URL with share data
We don't use embedded scripts
This share button is completely self-hosted by this webserver. No scripts from any of the social networks are embedded on this webserver. See also
Social Share Button.
- ↑
When a package is build using
dpkg-buildpackage
the resulting packages will be created in the parent folder. It's better for usability if this is not the user's home folder since many other files may already reside there. Thereby making the build result files more difficult to find or delete. This is a missing Debian feature. See: dpkg-buildpackage: support output directory other than ..


Copy as Wikitext

for Discourse, reddit, GitHub

Copy as Markdown

Copy as phpBB Click below ↴ = Open social URL with share data











We believe security software like Kicksecure needs to remain Open Source and independent. Would you help sustain and grow the project? Learn more about our 12 year success story and maybe DONATE!