LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   SlackBuild Noob Question (https://www.linuxquestions.org/questions/slackware-14/slackbuild-noob-question-4175711027/)

poetgrant 04-20-2022 06:46 AM

SlackBuild Noob Question
 
So I am trying to write a SlackBuild script. I have followed the guide, but I have a problem that I am sure is probably obvious, but I can't figure it out.

Here's the problem.

I have a good SlackBuild script now that will build and do everything I want it to do, except for one thing. When I wget the tar file from sr.ht it downloads it as just the version number. So if I don't change that manually, my SlackBuild script will error out and say it can't find the tar file. I am not very good at Bash [obviously] and I'm not sure if it is hacky to write in a little script that will rename that version number tar file to the full program name + version so that the vanilla script I have written will find it.

Is that the move here? Or is there something that is more "correct"?

Thank you ahead of time for any help.

Tonus 04-20-2022 06:53 AM

I would simply adapt the slackbuild to untar the correct file. It usually ends in a directory wich name is correct (same problem from github.com).

Sometimes there's another location (archives) where to find tar files with correct name.

poetgrant 04-20-2022 08:12 AM

As it turns out, I was able to find a SlackBuild that already had a very elegant way of handling this and I just copied and pasted it... haha... I should have done that before I posted this, but just didn't think about it. Thank you for the suggestion, it pushed me in the right direction.


All times are GMT -5. The time now is 06:30 PM.