LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-20-2022, 06:46 AM   #1
poetgrant
Member
 
Registered: Feb 2019
Distribution: Slackware
Posts: 90

Rep: Reputation: 22
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.
 
Old 04-20-2022, 06:53 AM   #2
Tonus
Senior Member
 
Registered: Jan 2007
Location: Paris, France
Distribution: Slackware-15.0
Posts: 1,405
Blog Entries: 3

Rep: Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514
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.
 
1 members found this post helpful.
Old 04-20-2022, 08:12 AM   #3
poetgrant
Member
 
Registered: Feb 2019
Distribution: Slackware
Posts: 90

Original Poster
Rep: Reputation: 22
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.
 
1 members found this post helpful.
  


Reply

Tags
bash, slackbuild, wget



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] sbopkg installs "original" SlackBuild to /usr/doc/<pkg>/ instead of "local" SlackBuild drumz Slackware 29 01-20-2018 12:12 AM
[Patch and SlackBuild] Grub-2.02~beta2 SlackBuild and Patch. ReaperX7 Slackware 3 01-28-2015 09:30 AM
noob with a noob question phoonerorlater Linux - Newbie 2 09-29-2004 03:43 PM
Firewall help (noob really really huge noob) ProtoformX Linux - Networking 1 03-29-2004 12:19 AM
Complete noob question from a noob noob_hampster Linux - Software 2 09-04-2003 12:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration