Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente |
fr:howtos:slackware_admin:creating_a_package_using_a_slackbuild_script [2016/04/30 02:57 (UTC)] – [Utiliser un script SlackBuild] pierreaverseng | fr:howtos:slackware_admin:creating_a_package_using_a_slackbuild_script [2017/12/13 03:10 (UTC)] (Version actuelle) – [Utiliser un script SlackBuild] pierreaverseng |
---|
{{ :howtos:build-shot.png?200 |}} | {{ :howtos:build-shot.png?200 |}} |
| |
Bien, allons-y maintenant. La première chose à faire est d'atteindre [[http://slackbuilds.org/|SlackBuilds.org]] avec votre navigateur préféré. Dans la petite zone de recherche, en haut à droite, saisissez le nom de l'application que vous cherchez. Pour ce tutoriel, nous allons utiliser PysolFC, un paquet de plusieurs jeux. Dès que la recherche a abouti, vous êtes à [[http://slackbuilds.org/repository/13.0/games/pysolfc/|pysolfc SlackBuild page]] (voir Fig 2). | Bien, allons-y maintenant. La première chose à faire est d'atteindre [[http://slackbuilds.org/|SlackBuilds.org]] avec votre navigateur préféré. Dans la petite zone de recherche, en haut à droite, saisissez le nom de l'application que vous cherchez et juste à côté précisez la version de votre Slackware . Pour ce tutoriel, nous allons utiliser PysolFC pour Slackware14.1, il s'agit d'un paquet d'environ mille jeux. Dès que la recherche a abouti, vous ê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'archives, comme 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 directory. That’s right. Just 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é. Parfait. Vous 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 well, the SlackBuild script will have created a .tgz package in your /tmp directory. Navigate 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 Slackware’s native pkgtool: | * Vous devez voir un fichier nommé pysolfc-2.0-x86_64-1_SBo.tgz. Installez le en employant l’outil Slackware d'origine pkgtool: |
| |
''# installpkg pysolfc-1.1-i486-2_SBo.tgz'' | ''# installpkg pysolfc-2.0-x86_64-1_SBo.tgz'' |
| |
That's it. You'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 originale. Des 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 --> |
<!-- 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}} |