Page 1 sur 1

[PKGBUILD] Wesnoth 1.3.3

Publié : mer. 06 juin 2007, 14:21
par mélodie
Il n'y a pas grand-chose à modifier, et comme je n'y connais rien j'en ai profité.

Dans le pkgbuild précédent, il n'y a que le numéro de version et le checksum à changer. Chez moi sdl_net n'était pas installé, je l'ai ajouté. Et c'est tout.

Cela donne:
# $Id: PKGBUILD,v 1.28 2007/04/17 15:54:46 tpowa Exp $
# Maintainer: Tobias Powalowski <tpowa@archlinux.org>
#Contributor: Jacobo Arvelo <unix4all@ya.com>
pkgname=wesnoth
pkgver=1.3.3
pkgrel=1
pkgdesc="A turn-based strategy game on a fantasy world"
arch=(i686 x86_64)
url="http://www.wesnoth.org/"
depends=('sdl_ttf' 'sdl_net' 'sdl_mixer' 'sdl_image' 'libvorbis' 'fribidi' 'freetype2' 'gcc')
#source=(http://www.wesnoth.org/files/$pkgname-$pkgver.tar.gz)
install=wesnoth.install
source=(http://heanet.dl.sourceforge.net/source ... er.tar.bz2)


build() {
cd $startdir/src/$pkgname-$pkgver
./configure --prefix=/opt --enable-tools --enable-editor --enable-server
make || return 1
make prefix=$startdir/pkg/opt install
# install menu entry
install -D -m644 icons/wesnoth.desktop $startdir/pkg/usr/share/applications/wesnoth.desktop
install -D -m644 images/wesnoth-icon.png $startdir/pkg/usr/share/pixmaps/wesnoth-icon.png
}
md5sums=('af33c9370c353fd3a97b3ecd561bcf0e')
Détail, j'ai mis opt ici au lieu de usr:

Code : Tout sélectionner

./configure --prefix=/opt
Il faut remettre le même fichier wesnoth.install, qui dit des choses et d'autres, dans le répertoire où se trouve le PKGBUIKD :
# arg 1: the new package version
post_install() {
cat << EOF
Note:
==> If you experience sound problems try setting your SDL_AUDIODRIVER environment variable to "dma"
==> eg. export SDL_AUDIODRIVER="dma" ; wesnoth
==> If "dma" doesn't work,other options are: dsp,alsa,artsc,esd,nas try to find the right output.
EOF
}

# arg 1: the new package version
# arg 2: the old package version
post_upgrade() {
post_install $1
}

op=$1
shift
$op $*
IL faudrait que j'essaie d'apprendre à y jouer tant que j'y suis :D

......
...

Re: [PKGBUILD] Wesnoth 1.3.3

Publié : mer. 06 juin 2007, 14:25
par marc[i1]
mélodie a écrit :Il n'y a pas grand-chose à modifier, et comme je n'y connais rien j'en ai profité.
Mais tu as absolument raison, c'est en décortiquant le travail des autres pour le comprendre que l'on apprends.

<pub éhontée>
http://wiki.archlinux.fr/howto:archlinu ... gstandards
</pub éhontée>

Publié : mer. 06 juin 2007, 14:32
par vincentxavier
:vante:

Publié : mer. 06 juin 2007, 14:35
par vincentxavier
:vante:

Publié : mer. 06 juin 2007, 14:37
par marc[i1]
peut être mais je suis pas atteint de la frénésie du clic !
:brice:
:french: :kimouss:

Re: [PKGBUILD] Wesnoth 1.3.3

Publié : mer. 06 juin 2007, 14:39
par mélodie
marc[i1] a écrit :
mélodie a écrit :Il n'y a pas grand-chose à modifier, et comme je n'y connais rien j'en ai profité.
Mais tu as absolument raison, c'est en décortiquant le travail des autres pour le comprendre que l'on apprends.
merci !
marc[i1] a écrit :<pub éhontée>
http://wiki.archlinux.fr/howto:archlinu ... gstandards
</pub éhontée>
Ça commence mal... :(
Qu'est-ce que c'est alphanumérique ? Ne suis peut-être pas réveillée. Je rêve que j'ai lu une doc ?

marc[i1 qu'est-ce que c'est cette doc extra-terrestre ? :lol:
Rien à voir avec les pkgbuild ?

Publié : mer. 06 juin 2007, 14:44
par marc[i1]
Bon si tu veux bien être patiente (bon t'es une femme alors je sais pas si tu peux !) on devrais d'ici peu améliorer ta compréhension des PKGBUILDs ...

vas tu savoir patienter ? mystère :lol:

Publié : mer. 06 juin 2007, 15:17
par mélodie
marc[i1] a écrit :Bon si tu veux bien être patiente (bon t'es une femme alors je sais pas si tu peux !) on devrais d'ici peu améliorer ta compréhension des PKGBUILDs ...

vas tu savoir patienter ? mystère :lol:
Je suis une femme exclusivement sous Linux, je trompe donc mon impatience en me dispersant, comme il se doit ! :lol:
(tiens, ça me fait penser, j'ai pas fini la configuration du noyau, reste que quelques options à vérifier... pfff j'ai la flemme... )