VERSION FINIS TESTER ET OK !# Maintainer: Carre Steeve <lococorporation@gmail.com>
pkgname=gamine
pkgver=0.0.1
pkgrel=1
license=('GPL')
arch=('i686')
pkgdesc="Graphism for kid"
url="http://gnunux.info/projets/gamine/"
depends=('gstreamer0.10' 'cairo')
source=(http://gnunux.info/projets/gamine/$pkgn ... pkgrel.tgz)
md5sums=('4fa5f2669be7b814631714e30ae38afb')
build() {
cd $startdir/src/$pkgname-$pkgver-$pkgrel
make || return 1
mkdir -p $startdir/pkg/usr/share $startdir/pkg/usr/bin
mv $startdir/src/$pkgname-$pkgver-$pkgrel $startdir/pkg/usr/share/
ln -s $startdir/pkg/usr/share/$pkgname-$pkgver-$pkgrel/$pkgname $startdir/pkg/usr/bin
}
[gamine] PKGBUILD
[gamine] PKGBUILD
Gamine est un logiciel de dessin concu spacialement pour les enfants. Voici le pkgbuild
Dernière modification par horus le sam. 16 août 2008, 18:43, modifié 3 fois.
- lenglemetz
- Chu Ko Nu
- Messages : 307
- Inscription : dim. 27 mai 2007, 22:26
- Localisation : France
- Contact :
Petite correction :
Pour le 'mv $startdir/pkg/usr/sbin $startdir/pkg' tu as pas plustot une modif du makefiles a faire ? par un patch
Code : Tout sélectionner
# Maintainer: Carre Steeve <lococorporation@gmail.com>
pkgname=gamine
pkgver=0.0.1
pkgrel=1
license=('GPL')
arch=('i686') >>>>>>>>>> il est exlusivement 32 bits ?
pkgdesc="Graphism for kid"
url="http://gnunux.info/projets/gamine/"
source=(http://gnunux.info/projets/$pkgname/$pkgname-$pkgver-1.tgz) >>>> petite modif
md5sums=('4fa5f2669be7b814631714e30ae38afb')
build() {
cd $startdir/src/$pkgname-$pkgver-$pkgrel
./configure --prefix=/usr
make || return 1
make prefix=$startdir/pkg/usr install
mv $startdir/pkg/usr/sbin $startdir/pkg
mkdir -p $startdir/pkg/etc >>>>>>> il sert a quoi lui ? :D
}
[Thème] Sujet (état) |<
@donf_me •
StreaminG • La TeaM à DonF •
DonF_Me
- lenglemetz
- Chu Ko Nu
- Messages : 307
- Inscription : dim. 27 mai 2007, 22:26
- Localisation : France
- Contact :
- mélodie
- Maître du Kyudo
- Messages : 2784
- Inscription : lun. 30 oct. 2006, 02:06
- Localisation : Pyrénées
Il faut une série de gstreamer0.10, pour lire les ogg et les wav qui sont dans le répertoire "sounds" du paquet.lenglemetz a écrit :autre chose tu as pas oublié les dependances :]
Je ne sais pas précisément lequel ou lesquels sont nécessaires, j'en ai installé une tirée à vue de nez parce que j'étais pressée.
Ces sons accompagnent le geste : quand l'enfant agit en cliquant, un joli son se produit en même temps qu'une forme apparaît.

/horus, merci de t'y pencher, c'est sympa.
- lenglemetz
- Chu Ko Nu
- Messages : 307
- Inscription : dim. 27 mai 2007, 22:26
- Localisation : France
- Contact :
- mélodie
- Maître du Kyudo
- Messages : 2784
- Inscription : lun. 30 oct. 2006, 02:06
- Localisation : Pyrénées
Es-tu sûr d'avoir utilisé la commande indiquée plus haut par Lenglemetz, pour vérifier quelles sont les dépendances nécessaires ?horus a écrit :J'ai refait le pkgbuild sans erreur ! A tester donc !! Je le remet a la place du premier
Parce que gstreamer0.10 est une grande famille !?
De plus il a dit:$ yaourt gstreamer0.10
1 extra/gstreamer0.10-python 0.10.12-1
Python bindings for GStreamer 0.10
xargs: xargs.c :443 : main: L'assertion « bc_ctl.arg_max <= (131072-2048) » a échoué.
2 extra/gstreamer0.10 0.10.20-1 [ installed]
GStreamer Multimedia Framework
xargs: xargs.c :443 : main: L'assertion « bc_ctl.arg_max <= (131072-2048) » a échoué.
3 extra/gstreamer0.10-bad 0.10.7-1 [ installed]
GStreamer Multimedia Framework Bad Plugin libraries (gst-plugins-bad)
xargs: xargs.c :443 : main: L'assertion « bc_ctl.arg_max <= (131072-2048) » a échoué.
4 extra/gstreamer0.10-ugly 0.10.8-1 [ installed]
GStreamer Multimedia Framework Ugly plugin libraries
xargs: xargs.c :443 : main: L'assertion « bc_ctl.arg_max <= (131072-2048) » a échoué.
5 extra/gstreamer0.10-base 0.10.20-1 [ installed]
GStreamer Multimedia Framework Base plugin libraries
xargs: xargs.c :443 : main: L'assertion « bc_ctl.arg_max <= (131072-2048) » a échoué.
6 extra/gstreamer0.10-ffmpeg 0.10.4-1 [ installed]
Gstreamer FFMpeg Plugin
xargs: xargs.c :443 : main: L'assertion « bc_ctl.arg_max <= (131072-2048) » a échoué.
7 extra/gstreamer0.10-bad-plugins 0.10.7-3 [ installed]
GStreamer Multimedia Framework Bad Plugins (gst-plugins-bad)
xargs: xargs.c :443 : main: L'assertion « bc_ctl.arg_max <= (131072-2048) » a échoué.
8 extra/gstreamer0.10-good 0.10.8-1 [ installed]
GStreamer Multimedia Framework Good plugin libraries
xargs: xargs.c :443 : main: L'assertion « bc_ctl.arg_max <= (131072-2048) » a échoué.
9 extra/gstreamer0.10-ugly-plugins 0.10.8-1 [ installed]
GStreamer Multimedia Framework Ugly Plugins (gst-plugins-ugly)
xargs: xargs.c :443 : main: L'assertion « bc_ctl.arg_max <= (131072-2048) » a échoué.
10 extra/gstreamer0.10-pitfdll 0.9.1.1-2 [ installed]
Win32 DLL loader for Gstreamer
xargs: xargs.c :443 : main: L'assertion « bc_ctl.arg_max <= (131072-2048) » a échoué.
11 extra/gstreamer0.10-good-plugins 0.10.8-3 [ installed]
GStreamer Multimedia Framework Good Plugins (gst-plugins-good)
xargs: xargs.c :443 : main: L'assertion « bc_ctl.arg_max <= (131072-2048) » a échoué.
12 extra/gstreamer0.10-base-plugins 0.10.20-1 [ installed]
GStreamer Multimedia Framework Base Plugins (gst-plugins-base)
13 community/gstreamer0.10-pulse 0.9.7-1
A GStreamer 0.10 plugin for the PulseAudio sound server
14 community/gstreamer0.10-farsight 0.12.8-1
A set of plugins for Gstreamer that will be used by Farsight
15 aur/gstreamer0.10-amrnb 0.10.8-1
GStreamer AMR-NB plugin with codec from 3GPP.
16 aur/gstreamer0.10-amrwb 0.10.7-1
GStreamer AMR-WB plugin with codec from 3GPP.
17 aur/gstreamer0.10-fluendo 0.10.15-1
GStreamer fluendo mpegdemux plugin
18 aur/gstreamer0.10-good-plugins-ossv4 0.10.8-1
GStreamer Multimedia Framework Good Plugins (gst-plugins-good) with OSSv4 support
19 aur/gstreamer0.10-pitfdll-cvs 20080215-1
Win32 DLL loader for Gstreamer (development snapshot).
20 aur/lib32-gstreamer0.10 0.10.20-1
GStreamer Multimedia Framework
21 aur/lib32-gstreamer0.10-base 0.10.20-1
GStreamer Multimedia Framework Base Plugins (gst-plugins-base)
Tu n'as pas corrigé cette partie. (Pas si simple ?arch=('i686') >>>>>>>>>> il est exlusivement 32 bits ?

- mélodie
- Maître du Kyudo
- Messages : 2784
- Inscription : lun. 30 oct. 2006, 02:06
- Localisation : Pyrénées
Ok, mais testé : pouet pouet !!!horus a écrit :extra/gstreamer0.10 0.10.20-1 [installed]
GStreamer Multimedia Framework
De plus namcap pkg ne me donne rien
Je viens de le compiler et de l'installer avec ton PKGBUILD alors :
1) Il n'y a pas de desktop-entry (c'est un scandale !

2) Il n'y a pas le son (encore un scandale !

Mais : si je lance gamine depuis le répertoire où je l'ai détaré, j'ai le son !
Voici l'arborescence du tarball:
$ ls -lR gamine-0.0.1-1
gamine-0.0.1-1:
total 100
-rw-r--r-- 1 melodie users 665 nov. 27 2007 COPYING
-rw-r--r-- 1 melodie users 64 nov. 25 2007 ChangeLog
-rw-r--r-- 1 melodie users 272 nov. 25 2007 Makefile
-rw-r--r-- 1 melodie users 103 nov. 25 2007 README
-rwxr-xr-x 1 melodie users 36849 août 13 22:54 gamine
-rw-r--r-- 1 melodie users 7652 nov. 27 2007 gamine.c
-rw-r--r-- 1 melodie users 35804 août 13 22:54 gamine.o
drwxr-xr-x 2 melodie users 4096 nov. 25 2007 sounds
gamine-0.0.1-1/sounds:
total 5320
-rw-r--r-- 1 melodie users 4817400 nov. 25 2007 BachJSBrandenburgConcertNo2inFMajorBWV1047mvmt1.ogg
-rw-r--r-- 1 melodie users 677 nov. 25 2007 README
-rw-r--r-- 1 melodie users 1356 nov. 25 2007 bleep.wav
-rw-r--r-- 1 melodie users 12232 nov. 25 2007 bonus.wav
-rw-r--r-- 1 melodie users 15266 nov. 25 2007 brick.wav
-rw-r--r-- 1 melodie users 12302 nov. 25 2007 bubble.wav
-rw-r--r-- 1 melodie users 25034 nov. 25 2007 crash.wav
-rw-r--r-- 1 melodie users 9356 nov. 25 2007 darken.wav
-rw-r--r-- 1 melodie users 1484 nov. 25 2007 drip.wav
-rw-r--r-- 1 melodie users 22634 nov. 25 2007 eat.wav
-rw-r--r-- 1 melodie users 9566 nov. 25 2007 eraser1.wav
-rw-r--r-- 1 melodie users 8382 nov. 25 2007 eraser2.wav
-rw-r--r-- 1 melodie users 976 nov. 25 2007 flip.wav
-rw-r--r-- 1 melodie users 5660 nov. 25 2007 gobble.wav
-rw-r--r-- 1 melodie users 6694 nov. 25 2007 grow.wav
-rw-r--r-- 1 melodie users 16736 nov. 25 2007 level.wav
-rw-r--r-- 1 melodie users 8170 nov. 25 2007 line_end.wav
-rw-r--r-- 1 melodie users 3120 nov. 25 2007 paint1.wav
-rw-r--r-- 1 melodie users 8568 nov. 25 2007 plick.ogg
-rw-r--r-- 1 melodie users 2196 nov. 25 2007 prompt.wav
-rw-r--r-- 1 melodie users 55008 nov. 25 2007 receive.wav
-rw-r--r-- 1 melodie users 9710 nov. 25 2007 tri.ogg
-rw-r--r-- 1 melodie users 129418 nov. 25 2007 tuxok.wav
-rw-r--r-- 1 melodie users 182630 nov. 25 2007 youcannot.wav
- mélodie
- Maître du Kyudo
- Messages : 2784
- Inscription : lun. 30 oct. 2006, 02:06
- Localisation : Pyrénées
Dans cette ligne donc:

mais il n'y a pas "*/$pkgname" sous /usr/share :ln -s $startdir/pkg/usr/share/$pkgname-$pkgver-$pkgrel/$pkgname $startdir/pkg/usr/bin
De plus, il me semble que tout ce qui est au-dessus de /usr/share/gamine-0.0.1-1/sounds est superflu à cet endroit-là, non ?[melodie@squirrel share]$ pwd
/usr/share
[melodie@squirrel share]$ ls -lR gamine-0.0.1-1/
gamine-0.0.1-1/:
total 100
-rw-r--r-- 1 root root 665 nov. 27 2007 COPYING
-rw-r--r-- 1 root root 64 nov. 25 2007 ChangeLog
-rw-r--r-- 1 root root 272 nov. 25 2007 Makefile
-rw-r--r-- 1 root root 103 nov. 25 2007 README
-rwxr-xr-x 1 root root 36849 août 16 18:50 gamine
-rw-r--r-- 1 root root 7652 nov. 27 2007 gamine.c
-rw-r--r-- 1 root root 35808 août 16 18:50 gamine.o
drwxr-xr-x 2 root root 4096 nov. 25 2007 sounds
gamine-0.0.1-1/sounds:
total 5320
-rw-r--r-- 1 root root 4817400 nov. 25 2007 BachJSBrandenburgConcertNo2inFMajorBWV1047mvmt1.ogg
-rw-r--r-- 1 root root 677 nov. 25 2007 README
-rw-r--r-- 1 root root 1356 nov. 25 2007 bleep.wav
-rw-r--r-- 1 root root 12232 nov. 25 2007 bonus.wav
-rw-r--r-- 1 root root 15266 nov. 25 2007 brick.wav
-rw-r--r-- 1 root root 12302 nov. 25 2007 bubble.wav
-rw-r--r-- 1 root root 25034 nov. 25 2007 crash.wav
-rw-r--r-- 1 root root 9356 nov. 25 2007 darken.wav
-rw-r--r-- 1 root root 1484 nov. 25 2007 drip.wav
-rw-r--r-- 1 root root 22634 nov. 25 2007 eat.wav
-rw-r--r-- 1 root root 9566 nov. 25 2007 eraser1.wav
-rw-r--r-- 1 root root 8382 nov. 25 2007 eraser2.wav
-rw-r--r-- 1 root root 976 nov. 25 2007 flip.wav
-rw-r--r-- 1 root root 5660 nov. 25 2007 gobble.wav
-rw-r--r-- 1 root root 6694 nov. 25 2007 grow.wav
-rw-r--r-- 1 root root 16736 nov. 25 2007 level.wav
-rw-r--r-- 1 root root 8170 nov. 25 2007 line_end.wav
-rw-r--r-- 1 root root 3120 nov. 25 2007 paint1.wav
-rw-r--r-- 1 root root 8568 nov. 25 2007 plick.ogg
-rw-r--r-- 1 root root 2196 nov. 25 2007 prompt.wav
-rw-r--r-- 1 root root 55008 nov. 25 2007 receive.wav
-rw-r--r-- 1 root root 9710 nov. 25 2007 tri.ogg
-rw-r--r-- 1 root root 129418 nov. 25 2007 tuxok.wav
-rw-r--r-- 1 root root 182630 nov. 25 2007 youcannot.wav
[melodie@squirrel share]$

- lenglemetz
- Chu Ko Nu
- Messages : 307
- Inscription : dim. 27 mai 2007, 22:26
- Localisation : France
- Contact :
- lenglemetz
- Chu Ko Nu
- Messages : 307
- Inscription : dim. 27 mai 2007, 22:26
- Localisation : France
- Contact :
comme ça il marche :p# Maintainer: Carre Steeve <lococorporation@gmail.com>
pkgname=gamine
pkgver=0.0.1
pkgrel=1
_pkgrel=1
license=('GPL')
arch=('i686' 'x86_64')
pkgdesc="Graphism for kid"
url="http://gnunux.info/projets/gamine/"
depends=('gstreamer0.10' 'cairo' 'gtk2')
source=(http://gnunux.info/projets/gamine/$pkgn ... pkgrel.tgz)
md5sums=('4fa5f2669be7b814631714e30ae38afb')
build() {
cd "$srcdir/$pkgname-$pkgver-$_pkgrel"
make || return 1
mkdir -p $pkgdir/usr/{share,bin}
mv $srcdir/$pkgname-$pkgver-$pkgrel $pkgdir/usr/share/
ln -s /usr/share/$pkgname-$pkgver-$_pkgrel/$pkgname $startdir/pkg/usr/bin/
}
[Thème] Sujet (état) |<
@donf_me •
StreaminG • La TeaM à DonF •
DonF_Me
- Abazigal
- Chu Ko Nu
- Messages : 313
- Inscription : sam. 26 avr. 2008, 14:45
- Localisation : Seine et Marne
Oui, en gros la valeur de la variable "path" depend d'où tu as lancé la commande, c'est completement stupide.
(rappelons que la fonction "getenv", en C, sert à recuperer la valeur d'une variable d'environement du shell)
Si on lance "gamine" alors qu'on est dans /home/horus, par exemple : la variable d'environement PWD (qui est egal au chemin absolue du dossier dans lequel on est) vaudra /home/horus.
Donc, avec leur ligne de code, il cherchera les sons dans /home/horus/sounds/ et ne les trouvera pas, bien sur.
Par contre ca marche bien quand tu le lance depuis le dossier ou il y a le dossier "sounds" (comme l'a fait remarqué mélodie), logique ...
il faudrai remplacer
par
Enfin, ce n'est que mon humble avis, peut-etre que je me goure completement (mais je pense pas) 
(rappelons que la fonction "getenv", en C, sert à recuperer la valeur d'une variable d'environement du shell)
Si on lance "gamine" alors qu'on est dans /home/horus, par exemple : la variable d'environement PWD (qui est egal au chemin absolue du dossier dans lequel on est) vaudra /home/horus.
Donc, avec leur ligne de code, il cherchera les sons dans /home/horus/sounds/ et ne les trouvera pas, bien sur.
Par contre ca marche bien quand tu le lance depuis le dossier ou il y a le dossier "sounds" (comme l'a fait remarqué mélodie), logique ...
il faudrai remplacer
Code : Tout sélectionner
path = g_strdup_printf("file://%s/sounds/%s", getenv("PWD"), uri);
Code : Tout sélectionner
path = g_strdup_printf("file://LE_CHEMIN_VERS_LE_DOSSIER_QUI_CONTIENT_LES_SONS/%s", uri);

Si les cons savaient voler, il ferait nuit tout le temps ...
- lenglemetz
- Chu Ko Nu
- Messages : 307
- Inscription : dim. 27 mai 2007, 22:26
- Localisation : France
- Contact :
- Abazigal
- Chu Ko Nu
- Messages : 313
- Inscription : sam. 26 avr. 2008, 14:45
- Localisation : Seine et Marne
Ha, zut 
Peux-tu me copier/coller la nouvelle ligne (ce que change ton patch quoi), stp ?
Je voulais experimenter moi même, mais l'installation (même sans modification) ne marche pas chez moi: j'ai un bombardement d'erreur à la compilation
(je suis en x64, ptete pour ca ...
)

Peux-tu me copier/coller la nouvelle ligne (ce que change ton patch quoi), stp ?
Je voulais experimenter moi même, mais l'installation (même sans modification) ne marche pas chez moi: j'ai un bombardement d'erreur à la compilation

(je suis en x64, ptete pour ca ...

Dernière modification par Abazigal le mer. 20 août 2008, 11:15, modifié 1 fois.
Si les cons savaient voler, il ferait nuit tout le temps ...
tu as du oublié un / après le "file://"
mais ce qui serait mieux, c'est de mettre un script pour lancer le prog au lieu de juste lier l'executable:
et gamine.sh:
Code : Tout sélectionner
path = g_strdup_printf("file:///usr/share/gamine-0.0.1-1/sounds/%s", uri);
Code : Tout sélectionner
pkgname=gamine
pkgver=0.0.1
pkgrel=1
_pkgrel=1
license=('GPL')
arch=('i686' 'x86_64')
pkgdesc="Graphism for kid"
url="http://gnunux.info/projets/gamine/"
depends=('gstreamer0.10' 'cairo' 'gtk2')
source=(http://gnunux.info/projets/gamine/$pkgname-$pkgver-$_pkgrel.tgz gamine.sh)
md5sums=('4fa5f2669be7b814631714e30ae38afb')
build() {
cd "$srcdir/$pkgname-$pkgver-$_pkgrel"
make || return 1
install -d -m 755 "$pkgdir/usr/"{share/gamine/sounds,bin}
install -t "$pkgdir/usr/share/$pkgname" "$srcdir/$pkgname-$pkgver-$_pkgrel/"{gamine,ChangeLog}
install -t "$pkgdir/usr/share/$pkgname/sounds" "$srcdir/$pkgname-$pkgver-$_pkgrel/sounds/"*
install -m 755 "$startdir/gamine.sh" "$pkgdir/usr/bin/gamine"
}
Code : Tout sélectionner
#!/bin/sh
cd /usr/share/gamine
./gamine