Page 1 of 1
Fatdog native package build system
Posted: Sat Aug 03, 2024 7:28 pm
by dr__Dan
Hello Fatdog team
I've wanted to make packages for a long time, and have been able to do so, but not successfully with the native package build system. I've looked into it several times, but it never would work for me, and I fell back to the DESTDIR= method.
I tried it again the other day, and failed, but investigated more extensively this time. Then I remembered this post, viewtopic.php?p=86001&hilit=build#p86001, where I found the missing key. It was not clear from the instructions that the recipe needed to be in a directory inside the /pkg directory, and that the directory had to be listed after the build-pkg.sh command. Once I understood that, it worked smoothly.
I've attached a rewritten README file from that directory, an altered pet-package.md help file, and the successful recipe for the latest version of xfe.
I trust that will help.
Dan
Re: Fatdog native package build system
Posted: Mon Aug 05, 2024 4:19 pm
by jamesbond
Thank you @dr__Dan.
I will update the xfe recipe, and I will put the update README file for pkgbuild.
The pet-package.md however ... today, we generates the markdown files from HTML.
So I will need to compare the changes between the two, and then updated the HTML (which will eventually generates the pet-package.md), so the end result may not be identical. But hopefully close enough.
Nevertheless, thank you for your contribution; it is always appreciated!
Re: Fatdog native package build system
Posted: Tue Aug 06, 2024 6:37 am
by dr__Dan
@jamesbond, all my submissions are given for the team's consideration. If it would help, I can edit the html file as well. I just got to the md first, with a limited amount of time available.
I've mentioned to someone (likely you) my wish to alter the prepackaged defaults in xfe to correspond with those of Fatdog64, e.g. VLC for audio and video, viewnior for images, etc. The technique used in the recipe in lines 34-36 should be capable of doing what I envision, so I hope to make a version 2 of the recipe that does so.
Dan
Re: Fatdog native package build system
Posted: Wed Aug 07, 2024 7:36 am
by jamesbond
dr__Dan wrote: Tue Aug 06, 2024 6:37 am
@jamesbond, all my submissions are given for the team's consideration. If it would help, I can edit the html file as well. I just got to the md first, with a limited amount of time available.
Thank you for that @dr__Dan. You don't need to edit the html, I have already applied the changes to the html version too, you can see it here: http://distro.ibiblio.org/fatdog/web/fa ... ckage.html (this will be in the next release).
The technique used in the recipe in lines 34-36 should be capable of doing what I envision, so I hope to make a version 2 of the recipe that does so.
That's one of the way to do it. The other way, if you have too much changes, is just to include the customised configuration file in the recipe directory, and copy it over.
E.g. /usr/src/pkgbuild/pkg/xfe could contain: recipe and xfe.cfg (NOTE: the xfe.cfg is fictitious and is only meant as an example).
- xscreenshot-20240807T173250.png (24.04 KiB) Viewed 892 times
And inside the recipe (as part of pkg_build()
) you can say:
Or something like that.
Re: Fatdog native package build system
Posted: Thu Aug 08, 2024 6:33 am
by dr__Dan
@jamesbond, Thank you, that sounds far easier.
Dan