clib4 now has a working in progress ubuntu packages repository.
To use it you have to:
curl -fsSL https://clib4pkg.amigasoft.net/ubuntu/clib4.gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/clib4.gpg
echo "deb https://clib4pkg.amigasoft.net/ubuntu/ focal main" | sudo tee /etc/apt/sources.list.d/clib4.list
.apt update
To create an apt package you have to follow some specific rules. You can find an example here However an example of package should have this format:
In the DEBIAN/control file you have to fill all the informations about package. This is an example of control file:
Package: gdbm-clib4
Version: 1.19
Maintainer: Andrea Palmatè <os4test@amigasoft.net>
Architecture: amd64
Section: libdevel
Description: GNU dbm for clib4
After creating the correct tree you can use the dpkg
to create the .deb
package. For example:
dpkg --build gdbm_1.19_amd64