Build Slackware Package From Source Tutorial

  • #1

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


  • #2

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

  • #3

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!

  • #5

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

  • #6

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 derita busy for a while….lol.

Thanks for the help guys!

Last edited:

  • #7

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_O
day 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’horizon 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:

  • #8

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 titipan to be able to make a pkg?

Do I need to write the script myself?

  • #10

Take a look at the man page for ‘makepkg’. It is brief, but it is the command to make the Slackware package. If that is too brief of an explanation, then look at http://karellen.blogspot.com/2011/12/slackware-package-management.html, scroll down to the section of
Creating a package:Basic.

That is a very nice blog. Thanks for the info, mate! I pasted it into a document for further study.

Last edited:

  • #11

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’lengkung langit 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:

  • #13

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 berpenyakitan 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’n 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 batas 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:

  • #14

Last edited:

Source: https://www.linux.org/threads/building-packages-on-slackware.23704/