Hello…if someone wants to create a recipe for software that requires only patching but not compilation ďoes he needs to remove build() and install() sections from recipe or the recipe will be invalid? Furthermore will hpkgs be created then?
Given that you’d have to test the recipe before publishing it, how about trying those options and seeing what happens?
Anyway, from the wiki:
If a recipe doesn’t provide a definition for one of these functions, the corresponding build stage will be empty
Probably empty ones, given that nothing has been installed.
It would seem the recipes under haiku-data fit the description you are giving. They either have no BUILD section, or one that either just cd somewhere or do nothing, but they all INSTALL the files somewhere.
You can have a recipe omitting build and be totally fine, the important part is having the install step put files into the proper places to be packaged in, as madmax said.
You can look at recipes like FreeDoom (which is just game data files) for an example of how that works.
Thanks for your feedback.I was able to create a recipe that downloads the product,applies a patchset file and creates a hpkg…the main issue after installing the hpkg is that a Deskbar shortcut is created that contains all the folders of the product…
But i want to call php for the correct file adding also a argument …e.g php phoronix-test-suite.php interactive …any advice?
Using recipes, links in the Applications are added by addAppDeskbarSymlink, make sure you don’t link folders.
In a situation like yours usually make a script, add it into the “additional files” of the recipe and then copy it to the apps directory and use addAppDeskbarSymlink to make a link that points at that script.
Freedoom’s recipe also does it, so you can still look there for more pointers.
i made a .sh file containing these lines
#!/bin/bash
echo “Launching interactive mode…”
cd /boot/system/data/pts/pts-core
php phoronix-test-suite.php interactive
when i open a terminal and cd to /boot/system/apps/pts and run .sh file everything runs ok…
if i click on the deskbar link i see that a team with the php command running but i dont see a terminal window…any idea what am i missing here?
P.S i found the reason…. You should call Terminal in the .sh file
