• Important: We recently upgraded our forum software - please let us know if you run into any issues.

Building Packages on Slackware

Alexzee

New Member
Hi:

I do pretty will at keeping Slackware up to date and can install most things however; I would like to learn how to make my own packages.

Anyone good at this or could post me a link where I could learn how?
 


wizardfromoz

Super Moderator
Staff member
Gold Supporter
Our resident Slackware man is Paul @VP9KS , and by mentioning him, I have effectively pinged him, so he should saunter in sooner hopefully rather than later.

We have some others, as well, but I am not one of them, ... yet!

Good luck, and good to have you on board.

Wizard
 

Alexzee

New Member
Our resident Slackware man is Paul @VP9KS , and by mentioning him, I have effectively pinged him, so he should saunter in sooner hopefully rather than later.

We have some others, as well, but I am not one of them, ... yet!

Good luck, and good to have you on board.

Wizard
Thanks!
 

atanere

Moderator
Gold Supporter
A quick web search ("how to build packages in slackware") shows a lot of resources to help... Slack Book, Slack Builds, Slack Wiki, Slack Docs, and more. It all looks like too much work for me, but have fun! Fun is what it's all about! :D

Cheers
 

Alexzee

New Member
I'll have a look at the man page for makepkg and look for the Slack Book, Slack Wiki and the Slack Docs.
That reading ought to keep me busy for a while....lol.

Thanks for the help guys!
 
Last edited:

VP9KS

Well-Known Member
Sorry I'm late for the party all, I've been working 7 days a week for the last 6 weeks. Kinda makes you lose track of time. I think I had a o_Oday off last month, but I may have slept through it. Thanks to all who helped out.

Chapter 18 of Slackbook 2.0 (available at Slackware.com, free) covers package management starting at page 215. Section 18.3, starting on page 222, is where making packages is introduced, although I would recommend starting at the beginning of the chapter to understand the basics of management, especially dependencies. I don't claim to be an expert on the subject @HuMJohn is probably much better at it than I. As far as the scripts go, I would suggest downloading and exploding a few packages from slackBuilds.org, then examining the scripts. Another possibility introduced in chapter 18 is the rpm2tgz / rpm2targz command used to convert Red Hat (rpm) packages to slackpacks.

Oh, by the way, welcome aboard, Mate!:)

Happy Trails,
Paul
 
Last edited:

Alexzee

New Member
Thanks for the guidance and welcome VPKS.

I read the man page for makepkg. From that I understand that there are 3 types of scripts.

Will I have to run a script in order to be able to make a pkg?

Do I need to write the script myself?
 

VP9KS

Well-Known Member
Thanks for the guidance and welcome VPKS.

I read the man page for makepkg. From that I understand that there are 3 types of scripts.

Will I have to run a script in order to be able to make a pkg?

Do I need to write the script myself?
You can download a package, and explode it in your build environment, so that you can look at the scripts in the package. For example, the screen shot below shows part of the script for the package"FLDIGI"
FLDIGI SCRIPT.png


The wiki for this would be https://www.slackwiki.com/Writing_A_SlackBuild_Script. It will take a while to understand it, I don't fully myself as yet, so take your time with it, and remember to have fun!

Happy Trails,
Paul
 

VP9KS

Well-Known Member
Last edited:

Alexzee

New Member
You can download a package, and explode it in your build environment, so that you can look at the scripts in the package. For example, the screen shot below shows part of the script for the package"FLDIGI"View attachment 4066

The wiki for this would be https://www.slackwiki.com/Writing_A_SlackBuild_Script. It will take a while to understand it, I don't fully myself as yet, so take your time with it, and remember to have fun!

Happy Trails,
Paul
This is going to take some time for me to understand.
I started reading the Slack WiKi for Writing a SlackBuild script.
Thanks! :)
 
Last edited:

captain-sensible

New Member
Hi:

I do pretty will at keeping Slackware up to date and can install most things however; I would like to learn how to make my own packages.

Anyone good at this or could post me a link where I could learn how?
well my current thinking is this: brush up on bash ,so i have half a clue what stuff in slackbuild means , maybe cheat and just use alien slackbuild tool https://alien.slackbook.org/AST/ if i really feel gung ho have a read of https://www.slackwiki.com/Writing_A_SlackBuild_Script probably the first step would be to think of the most simple basic package that could possibly be built - i'm open to suggestions . Then of course open up a few Slackbuilds from slackbuilds.org & see if there is any pattern to them.
 
  • slackware
Reactions: Rob

captain-sensible

New Member
not being able to post this:
[Moderator edit: New users may have posts with links held up for spam review. Please be patient. Thanks.]

for the slack-desc part i just found this :
slack-desc its a slack-desc generator. Just downloaded it & installed. As root it fires up Ok using slackdesc --help (i'm on lastest 32 bit slackware 14.2 stable )
 
Last edited by a moderator:

Members online


Top