-
Notifications
You must be signed in to change notification settings - Fork 11
How to building a package for a repository for Debian or Debian.md
tx00100xt edited this page Jun 10, 2023
·
1 revision
apt install build-essential dput dh-make bzr-builddeb gnupg pbuilder ubuntu-dev-tools apt-file git
gpg --full-generate-key
The Debian/Ubuntu packaging tools need to learn about you as well in order to properly credit you in the changelog. Simply open your ~/.bashrc in a text editor and add something like this to the bottom of it:
export DEBFULLNAME="Bob Dobbs"
export DEBEMAIL="subgenius@example.com"
Now save the file and either restart your terminal or run:
$ source ~/.bashrc (If you do not use the default shell, which is bash, please edit the configuration file for that shell accordingly.)
apt install debhelper cmake flex bison nasm libsdl2-dev libvorbis-dev zlib1g-dev imagemagick libvulkan-dev vulkan-validationlayers-dev
Clone the repository
git clone https://github.com/tx00100xt/SeriousSamClassic-VK.git serioussamclassic-vk
Write your DEBFULLNAME and DEBEMAIL in the files:
cd serioussamclassic-vk
nano -w debian/changelog
nano -w debian/control
nano -w debian/copyright
nano -w debian/serioussamclassic-vk.1
Prepare the Package Environment
rm -rf .git
bzr init
brz add debian/*
bzr commit -m "Initial Release"
dh_make --createorig -c gpl2 -s -t debian -p serioussamclassic-vk_1.10.5
Build the package and check if it works.
bzr builddeb -- -us -uc
Build the signed package, ready to push to the repository
debuild -S