8 Steps to make a Slackware Package

http://www.talug.org/howto/Steps_to_make_Slack_package.html

Step 1
Download the source code of the program.

Step 2
Unarchive the source.
tar zxvf foo-1.0.1.tar.gz

Step 3
Change into the newly created directory.
cd foo-1.0.1

Step 4
Configure and make the source code.
./configure --prefix=/usr && make

Step 5
Become super user.
su

Step 6
Install it in a directory in your home user space.
make install prefix=/home/you/foo/usr

Step 7
Change to the directory where you installed it.
cd /home/you/foo

Step 8
Make the Slackware Package.
makepkg foo.tgz