[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
Last revisionBoth sides next revision
howtos:slackware_admin:creating_a_package_using_a_slackbuild_script [2012/09/25 05:07 (UTC)] – [Overview] updated internal link mfillpothowtos:slackware_admin:creating_a_package_using_a_slackbuild_script [2019/02/04 14:58 (UTC)] m3rsy
Line 1: Line 1:
 <!-- Add your text below. We strongly advise to start with a Headline (see button bar above). --> <!-- Add your text below. We strongly advise to start with a Headline (see button bar above). -->
-====== Creating a Package Using a SlackBuild Script ======+====== Creando un paquete usando un script SlackBuild ======
  
-===== Overview =====+===== Visión general=====
  
  
-Occasionallyyou will find that there is an application that you would really like to utilizebut it is not available in Slackware's repositoryFor times like this [[howtos:slackware_admin:how_to_use_slackware_installing_software|you have options]], one of which is using a [[http://slackbuilds.org/|SlackBuild]] script to build an application package for installation on your own systemThat is what this tutorial will endeavor to teach you. +Ocasionalmenteencontrará que hay una aplicación que realmente le gustaría utilizarpero no está disponible en el repositorio de Slackware. Para momentos como este [[howtos:slackware_admin:how_to_use_slackware_installing_software|tienes opciones]],  una de las cuales es usar un script [[http://slackbuilds.org/|SlackBuild]] para crear un paquete de aplicaciones para instalarlo en su propio sistemaEso es lo que este tutorial tratará de enseñarte.
 ---- ----
  
  
-==== Using a SlackBuild Script ====+==== Usando un Script de 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 applicationsor in this case in Slackware, installation of SlackBuild scripts (see Fig 1).+Una de las primeras cosas que hago en cualquiera de mis instalaciones de Linux es crear un directorio oculto llamado .build en mi directorio / home que uso principalmente para la compilación manual de aplicacioneso en este caso en Slackware, la instalación de scripts de SlackBuild (ver Figura 1).
  
 **Figure 1 – /home/<user>/.build** **Figure 1 – /home/<user>/.build**
Line 19: Line 18:
 {{ :howtos:build-shot.png?200 |}} {{ :howtos:build-shot.png?200 |}}
  
-OK, let’s get startedThe first thing you’ll need to do is navigate to [[http://slackbuilds.org/|SlackBuilds.org]] in your favorite browserIn the small search window in the upper right hand cornertype in the application you’re looking forFor this tutorial, we're going to use PysolFC, a multi-game packageOnce the search is completedyou’ll be on the [[http://slackbuilds.org/repository/13.0/games/pysolfc/|pysolfc SlackBuild page]] (see Fig 2).+OK, vamos a empezarLo primero que deberá hacer es navegar a [[http://slackbuilds.org/|SlackBuilds.org]] en su navegador favoritoEn la pequeña ventana de búsqueda en la esquina superior derechaescriba la aplicación que está buscandoPara este tutorial, vamos a usar PysolFC, un paquete de juegos múltiplesUna vez que se haya completado la búsquedaestarás en la [[http://slackbuilds.org/repository/13.0/games/pysolfc/|pagina pysolfc SlackBUild]] (ver Fig 2).
  
-**Figure – Pysolfc SlackBuild Page**+**Figura - Página de Pysolfc SlackBuild**
  
 {{ :howtos:pysolfc_page-shot.png?200 |}} {{ :howtos:pysolfc_page-shot.png?200 |}}
  
-Nowthe 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:+Ahoralo siguiente que deberá hacer es descargar la fuente ([[http://downloads.sourceforge.net/pysolfc/PySolFC-1.1.tar.bz2|PySolFC-1.1.tar.bz2]]) y el  SlackBuild ([[http://slackbuilds.org/slackbuilds/13.0/games/pysolfc.tar.gz|pysolfc.tar.gz]]) en su directorio .build (o donde quiera que quiera construir sus cosas). Descomprima el script SlackBuild desde la línea de comando usando este comando:
  
 ''$ tar -xvf pysolfc.tar.gz'' ''$ tar -xvf pysolfc.tar.gz''
  
-Or you can unpack it using your favorite graphical decompression applicationlike Ark or Xarchiver… use whatever you’re comfortable with.+O puede descomprimirlo usando su aplicación de descompresión gráfica favoritacomo Ark Xarchiver ... use lo que sea que le resulte cómodo.
  
-You’ll now have an uncompressed directory called “pysolfcMove the source directory (PySolFC-1.1.tar.bz2) that you downloaded previously into your newly uncompressed pysolfc directoryThat’s rightJust grab and drag that source directory right on into the pysolfc directory (see Fig 3). +Ahora tendrás un directorio sin comprimir llamado "pysolfc"Mueva el directorio de origen (PySolFC-1.1.tar.bz2) que descargó previamente en su directorio pysolfc recién descomprimidoEstá bienSimplemente agarre y arrastre ese directorio de origen directamente al directorio pysolfc (vea la Fig3). 
- +**Figura - Dentro del Directorio Pysolfc**
-**Figure – Inside the Pysolfc Directory**+
  
 {{ :howtos:pysol2-shot.png?200 |}} {{ :howtos:pysol2-shot.png?200 |}}
  
-  * Open your terminal application (Gnome Terminal, Konsole, etc.)+  * Abra su aplicación de terminal (Gnome Terminal, Konsole, etc.)
  
-  * Type the following command to make the pysolfc SlackBuild script executable:+  * Escriba el siguiente comando para hacer ejecutable el script pysolfc SlackBuild:
  
 ''$ chmod +x pysolfc.SlackBuild'' ''$ chmod +x pysolfc.SlackBuild''
  
-  * As root (to install globally on your Slackware system so all users can access), type the following command:+  * Como root (para instalar globalmente en su sistema Slackware para que todos los usuarios puedan acceder), escriba el siguiente comando:
  
 ''# ./pysolfc.SlackBuild'' ''# ./pysolfc.SlackBuild''
  
-  * If all went wellthe SlackBuild script will have created a .tgz package in your /tmp directoryNavigate to the /tmp directory in the terminal: +  * Si todo salió bienel script SlackBuild habrá creado un paquete .tgz en su directorio / tmp. Navegue al directorio / tmp en el terminal:
 ''# cd /tmp'' ''# cd /tmp''
  
-  * Check to see what’s there:+  * Compruebe para ver qué hay allí:
  
 ''# ls'' ''# ls''
  
-  * You should see a file called pysolfc-1.1-i486-2_SBo.tgz. Install it using Slackware’s native pkgtool:+  * Debería ver un archivo llamado pysolfc-1.1-i486-2_SBo.tgz. Instálalo usando el pkgtool nativo de Slackware:
  
 ''# installpkg pysolfc-1.1-i486-2_SBo.tgz'' ''# installpkg pysolfc-1.1-i486-2_SBo.tgz''
  
-That's itYou'll now find PysolFC in your menu (in Xfce).+Eso esAhora encontrará PysolFC en su menú (en Xfce).
  
-=====Sources=====+=====Fuentes=====
  
   * Originally written by [[wiki:user:nocturnal.slacker|V. T. Eric Layton]]   * Originally written by [[wiki:user:nocturnal.slacker|V. T. Eric Layton]]
  
-<note important>This how-to is an edited version of [[https://noctslackv1.wordpress.com/2012/01/29/lets-build-a-slackbuild-revisited/|THIS]] original sourceCopyrights may apply to the original. Author grants permission for use on this site in this modified form.</note>+<note important>TEste manual es una versión editada de[[https://noctslackv1.wordpress.com/2012/01/29/lets-build-a-slackbuild-revisited/ESTA]] fuente original. Los derechos de autor pueden aplicarse al original. El autor otorga el permiso para su uso en este sitio en esta forma modificada.</note>
  
 <!-- If you are copying information from another source, then specify that source --> <!-- If you are copying information from another source, then specify that source -->
Line 73: Line 70:
 <!-- * Contrbutions by [[wiki:user:yyy | User Y]] --> <!-- * Contrbutions by [[wiki:user:yyy | User Y]] -->
  
 + --- //[[wiki:user:m3rsy|M3rsy]] 2019/02/04 14:58 (UTC)//
 <!-- Please do not modify anything below, except adding new tags.--> <!-- Please do not modify anything below, except adding new tags.-->
 <!-- You must also remove the tag-word "template" below. Otherwise your page will not show up in the Table of Contents --> <!-- You must also remove the tag-word "template" below. Otherwise your page will not show up in the Table of Contents -->
 {{tag>howtos software slackbuild author_nocturnal.slacker}} {{tag>howtos software slackbuild author_nocturnal.slacker}}
 howtos:slackware_admin:creating_a_package_using_a_slackbuild_script ()