#!/bin/bash # # packager : G. Romain (Shaihuld~AT~gmail.com) # source location : http://www.rosegardenmusic.com/ # last revised : 26/12/07 softname='vlc' softversion='0.8.6.d' packageversion='46.1' arch='i486' cpu='i686' prefix=/usr # parameters needed for the build process buildir=$(pwd) srcpkg="$buildir/vlc-$softversion.tar.gz" src="$buildir/vlc-$softversion" package="$softname-$softversion-$arch-$packageversion" dest="$buildir/$package" # prepare the build result directory rm -rf $dest mkdir -p $dest mkdir -p $dest/install mkdir -p $dest/usr/doc/$softname-$softversion mkdir -p $dest/usr/share/icons/hicolor/48x48/apps/ mkdir -p $dest/usr/src/$softname-$softversion # Slack-desc cat < $dest/install/slack-desc |-----handy-ruler------------------------------------------------------| $softname: VLC $softname: $softname: VLC media player is a highly portable multimedia player for $softname: various audio and video formats (MPEG-1, MPEG-2, MPEG-4, DivX, $softname: mp3, ogg, ...) as well as DVDs, VCDs, and various streaming $softname: protocols. It can also be used as a server to stream in unicast $softname: or multicast in IPv4 or IPv6 on a high-bandwidth network. $softname: $softname: VLC DO NOT USE ANY CODECS $softname: $softname: EOF # extract the source code # tar.gz : tar zxvf $srcpkg # tar.bz2: tar xjvf $srcpkg # tgz : tar xzvf $srcpkg cd $buildir tar zxvf $srcpkg cd $src # configure the package and install it to the target directory export CFLAGS="-O2 -march=$arch -mtune=$cpu" export CXXFLAGS="-O2 -march=$arch -mtune=$cpu" ./configure \ --prefix=$prefix \ --build=$arch-slackware-linux --enable-wxwindows make make install DESTDIR=$dest --- Extraction du fchier et erreurs suivantes, je vois a peut pres pk ça chie ./build-vlc.sh: line 53: cd: /home/shai/Desktop/Packages/vlc-0.8.6.d: Aucun fichier ou répertoire de ce type ./build-vlc.sh: line 61: ./configure: Aucun fichier ou répertoire de ce type ./build-vlc.sh: line 63: --enable-wxwindows: command not found make: *** Pas de cibles spécifiées et aucun makefile n'a été trouvé. Arrêt. make: *** Pas de règle pour fabriquer la cible « install ». Arrêt.