Ne sachant pas trop où poster je vais ici.
Quand je veux installer snack : yaourt snack (numéro 1 de la liste)
Cela ne compile pas...
Je cherche, et je trouve que cela est du à la dernière version d'une bibliothèque..
Je créer le correctif... Mais comment faire pour que tout le monde puisse en profiter....
jkFormatMP3.c.patch
Code : Tout sélectionner
--- ../../snack2.2.10.ori/generic/jkFormatMP3.c 2005-12-14 12:29:38.000000000 +0100
+++ jkFormatMP3.c 2009-06-09 13:03:47.000000000 +0200
@@ -31,7 +31,7 @@
#include <string.h>
#define FRAS2(is,a) ((is) > 0 ? t_43[(is)]*(a):-t_43[-(is)]*(a))
#define MAXFRAMESIZE 2106 /* frame size starting at header */
-#define roundf(x) (floor((x)+(float )0.5f))
+//#define roundf(x) (floor((x)+(float )0.5f))
static char *gblOutputbuf;
static char *gblReadbuf;
static int gblBufind = 0;
Code : Tout sélectionner
pkgname=snack
pkgver=2.2.10
pkgrel=9
pkgdesc="The Snack Sound Toolkit (Tcl)"
url="http://www.speech.kth.se/snack/"
arch=('i686' 'x86_64')
license=('GPL')
depends=('tk' 'alsa-lib' 'libxft' 'libxss')
source=(http://www.speech.kth.se/snack/dist/$pkgname$pkgver.tar.gz configure.patch alsa.patch jkFormatMP3.c.patch)
md5sums=('98da0dc73599b3a039cba1b7ff169399'
'd0e95891bbaa44f555314ca91c9688f6'
'3cf709c217aa0c33e12e785db71c5583'
'c7a3795253edeb2dcd248a9b994fbe11')
build() {
cd $srcdir/$pkgname$pkgver/generic
patch < ../../jkFormatMP3.c.patch || return 1
cd ../unix
patch < ../../configure.patch || return 1
patch < ../../alsa.patch || return 1
./configure --prefix=/usr \
--with-tcl=/usr/lib \
--with-tk=/usr/lib \
--enable-alsa
make || return 1
make DESTDIR=$pkgdir install
}
Merci d'avance
Benjamin