Building Packages on Slackware

Alexzee

Active 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

Active 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

Well-Known Member
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

Active 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

Active 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
 

Alexzee

Active 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

Active 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

Active Member
update i https://www.slackwiki.com/Talk:Writing_A_SlackBuild_Script i've edited doc (a little & updated source) . Reading a doc is ok but its nice to see it working also what the other elements look like when its all put together.So I've written a slackbuild for latext2html; i've tested it on my 32 bit slackware 14.2 box, it produces a package which does convert .tex to html. Thus you can read Wiki and download an example working script for latex2html .


official slackbuild for latex2html is here : https://slackbuilds.org/repository/14.2/academic/latex2html/?search=latex2html
 
Last edited:

Members online


Latest posts

Top