Building Packages on Slackware

Alexzee

Well-Known Member
Joined
Jun 1, 2019
Messages
3,679
Reaction score
1,962
Credits
21,883
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?
 


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
 
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!
 
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
 
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:
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:
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?
 
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
 
Last edited:
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:
No worries, mate! Take all the time you need.

Happy Trails,
Paul
 
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.


There doesn't seem to be any official docs for slackware but I like the concept by Alien Bob " Who can help? Anyone can, from your uncle Ed who tinkers with Slackware on his old laptop to Linux gurus with development level skill sets. All are welcome" At https://docs.slackware.com/slackdocs:news

I have had a go contributing to some other doc sites; with https://docs.slackware.com so far i'm comfortable at docs.slackware there has only been light helpful twaeks to my content. Anyway i'm updating about slackbuild scripts. I'm doing a work in progress explanation of what a offical and current slackbuild for latex2html does : https://docs.slackware.com/howtos:misc:anatomy_of_a_slackbuild
 
Last edited:
  • slackware
Reactions: Rob
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:

Staff online

Members online


Top