[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.

Welcome to the Slackware Documentation Project

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
howtos:lets_build_a_slackbuild [2012/08/24 03:12 (UTC)] – changed source attribution to usual format vharishankarhowtos:lets_build_a_slackbuild [2012/09/22 01:23 (UTC)] (current) – removed nocturnal.slacker
Line 1: Line 1:
-===== Let's Build a SlackBuild ===== 
  
-One of the first things I do on any of my Linux installations is to create a hidden directory called .build in my /home directory that I use primarily for manual compiling of applications, or in this case in Slackware, installation of SlackBuild scripts (see Fig 1). 
- 
-**Figure 1 – /home/<user>/.build** 
- 
-{{ :howtos:build-shot.png?200 |}} 
- 
-OK, let’s get started. The first thing you’ll need to do is navigate to [[http://slackbuilds.org/|SlackBuilds.org]] in your favorite browser. In the small search window in the upper right hand corner, type in the application you’re looking for. For this tutorial, we're going to use PysolFC, a multi-game package. Once the search is completed, you’ll be on the [[http://slackbuilds.org/repository/13.0/games/pysolfc/|pysolfc SlackBuild page]] (see Fig 2). 
- 
-**Figure 2 – Pysolfc SlackBuild Page** 
- 
-{{ :howtos:pysolfc_page-shot.png?200 |}} 
- 
-Now, the next thing you’ll need to do is download the source ([[http://downloads.sourceforge.net/pysolfc/PySolFC-1.1.tar.bz2|PySolFC-1.1.tar.bz2]]) and the SlackBuild ([[http://slackbuilds.org/slackbuilds/13.0/games/pysolfc.tar.gz|pysolfc.tar.gz]]) into your .build directory (or wherever you want to build your stuff). Untar the SlackBuild script from the command line using this command: 
- 
-''$ tar -xvf pysolfc.tar.gz'' 
- 
-Or you can unpack it using your favorite graphical decompression application, like Ark or Xarchiver… use whatever you’re comfortable with. 
- 
-You’ll now have an uncompressed directory called “pysolfc”. Move the source directory (PySolFC-1.1.tar.bz2) that you downloaded previously into your newly uncompressed pysolfc directory. That’s right. Just grab and drag that source directory right on into the pysolfc directory (see Fig 3). 
- 
-**Figure 3 – Inside the Pysolfc Directory** 
- 
-{{ :howtos:pysol2-shot.png?200 |}} 
- 
-  * Open your terminal application (Gnome Terminal, Konsole, etc.) 
- 
-  * Type the following command to make the pysolfc SlackBuild script executable: 
- 
-''$ chmod +x pysolfc.SlackBuild'' 
- 
-  * As root (to install globally on your Slackware system so all users can access), type the following command: 
- 
-''# ./pysolfc.SlackBuild'' 
- 
-<note important>If you’re running an x86_64 version of Slackware, you’ll need to preface the above command like this: 
- 
-''# ARCH=x86_64 ./pysolfc.SlackBuild'' 
- 
-This will let the script know that you’re running a 64 bit system and it will install accordingly.</note>  
- 
-  * If all went well, the SlackBuild script will have created a .tgz package in your /tmp directory. Navigate to the /tmp directory in the terminal: 
- 
-''# cd /tmp'' 
- 
-  * Check to see what’s there: 
- 
-''# ls'' 
- 
-  * You should see a file called pysolfc-1.1-i486-2_SBo.tgz. Install it using Slackware’s native pkgtool: 
- 
-''# installpkg pysolfc-1.1-i486-2_SBo.tgz'' 
- 
-That's it. You'll now find PysolFC in your menu (in Xfce). 
- 
-=====Sources===== 
-  * This how-to is an edited version of [[https://noctslackv1.wordpress.com/2012/01/29/lets-build-a-slackbuild-revisited/|THIS]] original source. Copyrights may apply to the original. Author grants permission for use on this site in this modified form. 
- 
-<!-- Please do not add anything below, except additional tags.--> 
-<!-- However we request that you remove the tag-word "template" below. Otherwise your page will not show up in the Table of Contents --> 
- 
-<!-- Do not remove this line and the tag definition below. Thanks! slackdocs@--> 
-{{tag>howtos software}} 
 howtos:lets_build_a_slackbuild ()