[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

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
fr:howtos:slackware_admin:creating_a_package_using_a_slackbuild_script [2016/04/29 13:11 (UTC)] – [Utiliser un script SlackBuild] pierreaversengfr:howtos:slackware_admin:creating_a_package_using_a_slackbuild_script [2017/12/13 03:10 (UTC)] (Version actuelle) – [Utiliser un script SlackBuild] pierreaverseng
Ligne 9: Ligne 9:
  
 ==== Utiliser un script SlackBuild ==== ==== Utiliser un script SlackBuild ====
-Une des premières choses que je fais sur chacune de mes installations Linux, c'est de créer un répertoire caché nommé .build dans mon répertoire /home that I use primarily for manual compiling of applications, or in this case in Slackware, installation de scripts SlackBuild  (voir Fig 1).+Une des premières choses que je fais sur chacune de mes installations Linux, c'est de créer un répertoire caché nommé .build dans mon répertoire /home. Je l'utilise essentiellement pour compiler des applications à la mainou dans le cas de Slackware, pour installer des scripts SlackBuild  (voir Fig 1).
  
 **Figure 1 – /home/<user>/.build** **Figure 1 – /home/<user>/.build**
Ligne 15: Ligne 15:
 {{ :howtos:build-shot.png?200 |}} {{ :howtos:build-shot.png?200 |}}
  
-OKlet’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 tutorialwe'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).+Bienallons-y maintenantLa première chose à faire est d'atteindre [[http://slackbuilds.org/|SlackBuilds.org]] avec votre navigateur préféréDans la petite zone de rechercheen haut à droite, saisissez le nom de l'application que vous cherchez et juste à côté précisez la version de votre Slackware Pour ce tutorielnous allons utiliser PysolFC pour Slackware14.1il s'agit d'un paquet d'environ mille jeuxDès que la recherche a aboutivous êtes à [[http://slackbuilds.org/repository/14.1/games/pysolfc/|pysolfc SlackBuild page]] (voir Fig 2).
  
-**Figure 2 – Pysolfc SlackBuild Page**+**Figure 2 – Page Pysolfc des SlackBuilds**
  
-{{ :howtos:pysolfc_page-shot.png?200 |}} +{{ fr:howtos:slackware_admin:pysolfc_page14-shot.png?200 |}} 
- +Maintenant allons de l'avant en téléchargeant le code source ([[http://downloads.sourceforge.net/pysolfc/PySolFC-2.0.tar.bz2|PySolFC-2.0.tar.bz2]]) et le SlackBuild ([[http://slackbuilds.org/slackbuilds/14.1/games/pysolfc.tar.gz|pysolfc.tar.gz]]) dans votre répertoire .build (ou en tout endroit qui vous convient pour construire vos paquets). Décompactez le script SlackBuild en ligne de commande, par l'appel suivant de la commande tar:
-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'' ''$ 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.+Vous pouvez aussi le décompresser  au moyen de votre application graphique favorite de décompression d'archivescomme Ark ou Xarchiver… employez tout ce avec quoi vous êtes à l'aise.
  
-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 directoryThat’s rightJust grab and drag that source directory right on into the pysolfc directory (see Fig 3).+Vous avez maintenant un répertoire décompacté nommé “pysolfc”. Amenez le répertoire source que vous venez de télécharger (PySolFC-2.0.tar.bz2) dans ce répertoire pysolfc récemment décompresséParfaitVous n'avez plus qu'à attraper et faire glisser ce répertoire source tout droit dans le répertoire pysolfc (voir Fig 3).
  
-**Figure 3 – Inside the Pysolfc Directory**+**Figure 3 – À l'intérieur du répertoire Pysolfc**
  
 {{ :howtos:pysol2-shot.png?200 |}} {{ :howtos:pysol2-shot.png?200 |}}
  
-  * Open your terminal application (Gnome Terminal, Konsole, etc.)+  * Ouvrez votre logiciel de terminal (Gnome Terminal, Konsole, etc.)
  
-  * Type the following command to make the pysolfc SlackBuild script executable:+  * Tapez cette commande pour rendre le script SlackBuild pysolfc exécutable:
  
 ''$ 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:+  * En étant root (pour faire une installation globale dans votre système Slackware afin que tous les utilisateurs puissent y accéder), saisissez la commande suivante:
  
 ''# ./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 tout s'est bien passéle script SlackBuild aura créé un paquet.tgz dans votre répertoire /tmp.
  
 ''# cd /tmp'' ''# cd /tmp''
  
-  * Check to see what’s there:+  * Voyez maintenant le contenu du répertoire /tmp:
  
 ''# ls'' ''# ls''
  
-  * You should see a file called pysolfc-1.1-i486-2_SBo.tgz. Install it using Slackwares native pkgtool:+  * Vous devez voir un fichier nommé pysolfc-2.0-x86_64-1_SBo.tgz. Installez le en employant loutil Slackware d'origine pkgtool:
  
-''# installpkg pysolfc-1.1-i486-2_SBo.tgz''+''# installpkg pysolfc-2.0-x86_64-1_SBo.tgz''
  
-That's itYou'll now find PysolFC in your menu (in Xfce).+Voilà. PysolFC est maintenant dans votre menu (dans Xfce).
  
 =====Sources===== =====Sources=====
  
-  * Originally written by [[wiki:user:nocturnal.slacker|V. T. Eric Layton]]+  * L'auteur de ce document est [[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 source. Copyrights may apply to the original. Author grants permission for use on this site in this modified form.</note>+<note importante>Ce how-to est une version mise en forme de [[https://noctslackv1.wordpress.com/2012/01/29/lets-build-a-slackbuild-revisited/|CETTE]] source originaleDes Copyrights peuvent s'appliquer à l'original. L'auteur autorise ce site à utiliser son document sous cette forme modifiée.</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 -->
Ligne 71: Ligne 70:
 <!-- 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 translator_pierreaverseng}}
 fr:howtos:slackware_admin:creating_a_package_using_a_slackbuild_script ()