Skip to content

Commit

Permalink
build-package
Browse files Browse the repository at this point in the history
fix url and packager adress
  • Loading branch information
tnut committed Mar 7, 2024
1 parent 59efa98 commit 245780e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
4 changes: 2 additions & 2 deletions en/content/build-package.60
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ basename=${name/6-/}
<p>
This array <strong>source</strong> contains 2 variables: firefox.png and firefox.desktop.
The source array from the recipe for the kernel provides a particularly good example:
<pre>source=(http://www.kernel.org/pub/linux/kernel/v3.0/linux-${_BaseVersion}.tar.bz2 \
<pre class="output">source=(http://www.kernel.org/pub/linux/kernel/v3.0/linux-${_BaseVersion}.tar.bz2 \
config_64 config \
http://www.kernel.org/pub/linux/kernel/v3.0/patch-$version.bz2 \
http://downloads.nutyx.org/files/patchs/$name/broadcom-wl-kernel3-01.patch \
Expand Down Expand Up @@ -271,7 +271,7 @@ make DESTDIR=$PKG install
url="http://docs.xfce.org/"

maintainer="git.xfce.org/xfce/xfce4-libutils"
packager="tnut <tnut@nutyx.org>"
packager="tnut &lt;tnut@nutyx.org&gt;"

makedepends=(glib intltool)

Expand Down
15 changes: 10 additions & 5 deletions fr/content/build-package.85
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,14 @@ basename=${name/6-/}
<p>
Le tableau <b>source</b> contient 2 variables: firefox.png et firefox.desktop.
Si on prend le tableau source de la recette du kernel, on a un joli exemple:
<pre class="output">source=(http://download.virtualbox.org/virtualbox/${VB_VERSION}/VirtualBox-${VB_VERSION}-${VB_BUILD}-Linux_${VB_ARCH}.run
http://fr.download.nvidia.com/XFree86/Linux-${_ARCH}/${NVIDIA_VERSION}/NVIDIA-Linux-${_ARCH}-${NVIDIA_VERSION}.run
http://www.kernel.org/pub/linux/kernel/v3.0/linux-${_BaseVersion}.tar.bz2 config_64 config)</pre>
<pre class="output">source=(http://www.kernel.org/pub/linux/kernel/v3.0/linux-${_BaseVersion}.tar.bz2 \
config_64 config \
http://www.kernel.org/pub/linux/kernel/v3.0/patch-$version.bz2 \
http://downloads.nutyx.org/files/patchs/$name/broadcom-wl-kernel3-01.patch \
http://downloads.nutyx.org/files/patchs/$name/3.2.8.patch \
http://downloads.nutyx.org/files/patchs/$name/3.4.patch \
http://downloads.nutyx.org/files/patchs/$name/makefile_compat.patch \
http://downloads.nutyx.org/files/patchs/$name/bc_wl_abiupdate.patch)</pre>
<p>
Chaque ligne est une variable que l'on peut appeler en utilisant la syntaxe:
<pre class="command_user"><kbd>echo "$(source[1])"</kbd></pre>
Expand Down Expand Up @@ -247,14 +252,14 @@ make DESTDIR=$PKG install
Si vous comparez cet exemple avec un port officiel de NuTyX,
vous constaterez que ce dernier contient plus d'informations.
C'est ce que nous verrons dans le prochain paragraphe.

<h3>Exemple pratique d'une recette</h3>
<h4>Le fichier libxfce4util/Pkgfile</h4>
<pre class="output">description="libxfce4util, base library for Xfce"
url="http://docs.xfce.org/"

maintainer="git.xfce.org/xfce/xfce4-libutils"
packager="tnut <tnut@nutyx.org>"
packager="tnut &lt;tnut@nutyx.org&gt;"
contributors="Tyrry, Geantbrun"

makedepends=(glib intltool)
Expand Down

0 comments on commit 245780e

Please sign in to comment.